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 we call babel.parse() without specifying the filename option (code), the plugin is not compatible with projects that have overrides in their Babel config.
E.g. if babel.config.js contains overrides: [{ test: '**/*.ts', plugins: ['@babel/plugin-transform-typescript'] }] then it will silently fail because we ignore errors and Babel cannot determine what config to use for parsing.
Because we call
babel.parse()
without specifying thefilename
option (code), the plugin is not compatible with projects that have overrides in their Babel config.E.g. if
babel.config.js
containsoverrides: [{ test: '**/*.ts', plugins: ['@babel/plugin-transform-typescript'] }]
then it will silently fail because we ignore errors and Babel cannot determine what config to use for parsing.The issue explains the problem more thoroughly: babel/babel#11540
Passing
{ filename: '' }
into thebabel.parse()
options appears to fix the issue.The text was updated successfully, but these errors were encountered: