We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As noted here: #386 babel 7 requires that plugins export a function, not an object. Babel 7 looks like it's ready to land very shortly.
Without the modification or the workaround below, you get this error:
Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}
Until something gets merged, a workaround is to inline a function in babel.config.js like this:
babel.config.js
const glamor = require('glamor/babel'); module.exports = { presets: [ '@babel/preset-env', ], plugins: [ () => glamor, // <-- satisfy babel 7's requirement of plugins being function ], };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As noted here: #386 babel 7 requires that plugins export a function, not an object. Babel 7 looks like it's ready to land very shortly.
Without the modification or the workaround below, you get this error:
Until something gets merged, a workaround is to inline a function in
babel.config.js
like this:The text was updated successfully, but these errors were encountered: