-
Notifications
You must be signed in to change notification settings - Fork 14
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
Production mode #516
Comments
Update: The problem disappears if the mode is set to 'none' in webpack configuration. |
@labnol Thank you. |
Please see this test repo. The top-level function is not generated when the mode is production but works for 'none' - thanks! |
Found another issue I guess. This doesn't work. const fnName = "hello";
global[fnName] = () => console.log("do something.."); |
@labnol A new version is now available. Try it out. |
I noticed an issue with the production mode. The top-level function is not added to the output if the global function calls another method that is imported from another folder.
I tried to replicate the structure here if that explains it better. https://codesandbox.io/s/mystifying-mestorf-8dfec?file=/src/index.js
The text was updated successfully, but these errors were encountered: