babel
babel copied to clipboard
Cannot find module 'meteor-babel/plugins/dynamic-import'
We're using meteor-babel in our wallabyJS config, and a recent update to this package has broken it.
Here's the compilers part:
compilers: {
'**/*.js?(x)': wallaby.compilers.babel({
presets: ['meteor', '@babel/preset-react', '@babel/preset-flow'],
plugins: [
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-proposal-class-properties',
'meteor-babel/plugins/dynamic-import', // Disabling this generates another error
],
}),
},
If I disable the use of the meteor-babel plugin, I get this error:
SyntaxError: Support for the experimental syntax 'dynamicImport' isn't currently enabled
How to enable dynamic import now?
Switching back to 7.4.4 makes it work again. Not sure how to make wallabyJS play nicely with Reify?
Some hints here: https://github.com/wallabyjs/public/issues/797
@Floriferous
Are you still on 7.4.4 or have you found another solution?