You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported upstream in estools/escodegen#455, there is a key issue in that in order to use escodegen, you need to have a process that understands how to handle a require of JSON, as can be seen in WCC's custom rollup configuration for bundling a CJS version of WCC
thescientist13
changed the title
vendor a bundle friendly and ESM compatible fork of escodegen
adopt a bundle friendly and ESM compatible fork of escodegen
Mar 9, 2024
Summary
As reported upstream in estools/escodegen#455, there is a key issue in that in order to use escodegen, you need to have a process that understands how to handle a
require
of JSON, as can be seen in WCC's custom rollup configuration for bundling a CJS version of WCCDetails
So for anyone using WCC, like Greenwood, its required to add a JSON plugin, in our case for Rollup.
Also while we're here, might as well refactor for ESM.
The text was updated successfully, but these errors were encountered: