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
Because jiti runs in an CJS context, although transpiled, ESM-only modules can't be loaded within unbuild's build.config (even if it is named build.config.mjs).
Would there be any merit in moving unbuild to use c12 and resolving this there?
Indeed would be good idea to use c12/jiti stack but as you pointed it is still cjs. Issue with cjs and it will resolve only for mjs (ts would have same issues)
Issue with estree-walker is resolved in jiti but had to move it behind esmResolve flag due to regressions. We might enable that flag by default when loading config.
unbuild/src/builder/untyped.ts
Lines 29 to 32 in fc7c164
Because jiti runs in an CJS context, although transpiled, ESM-only modules can't be loaded within unbuild's
build.config
(even if it is namedbuild.config.mjs
).Would there be any merit in moving
unbuild
to usec12
and resolving this there?Related: unjs/jiti#32.
The text was updated successfully, but these errors were encountered: