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
Operating System and version (if applicable): Linux/Ubuntu 20.04
Node Version (if applicable): 16.13.1
Does it work with tsc (if applicable): yes
Reproduction
define babel.config.js as ESM in a package with type="module" (this step is optional)
define rollup config:
importbabelConfigfrom'./babel.config';ts({transpiler: 'babel',browserslist: false,
babelConfig,// set here}),
run rollup -c
observe error:
Error while loading config - You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.
Expected Behavior
No error
Actual Behavior
Error.
What's funny is if I move the babel.config to a different directory, (like config or something), the error goes away.
So it seems that even though I'm setting babelConfig, the ts plugin is still trying to read babel.config.js itself
The text was updated successfully, but these errors were encountered:
tsc
(if applicable): yesReproduction
babel.config.js
as ESM in a package withtype="module"
(this step is optional)rollup -c
Expected Behavior
No error
Actual Behavior
Error.
What's funny is if I move the babel.config to a different directory, (like config or something), the error goes away.
So it seems that even though I'm setting
babelConfig
, the ts plugin is still trying to readbabel.config.js
itselfThe text was updated successfully, but these errors were encountered: