-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
exports is not defined #40
Comments
Webpack 2: "Uncaught ReferenceError: exports is not defined" when using Webpack 2.2 with ES Modules, exports will be undefined. So if you keep using babel-plugin-add-module-exports, you'll see Uncaught ReferenceError: exports is not defined |
So this is no way to bring this plugin's functionality to Webpack 2.2 :( |
@terion-name This still functional, but have some problem |
Here's a permalink to https://ntucker.true.io/ntucker/webpack-2-uncaught-referenceerror-exports-is-not-defined/, see comment above #40 (comment). |
up |
When I use your plugin, everything with
export default variableName
works fine.But when I export default object it's gonna throw error in console log.
Example
And when I try to export default new object, it's throw error too
The text was updated successfully, but these errors were encountered: