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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script tags are not executed in the global scope and do not work after bundling #1491
Comments
Will be fixed in #1456 |
I still occur this issue in version: 1.10.3 |
I was also seeing that this was an issue. |
same problem here. Any fix? |
What my solution is : then my html works correctly . |
What my solution is : then my html works correctly . |
What my solution is : then my html works correctly . |
馃悰 bug report
Included vanilla javascript scripts are not executed in the global scope the way they are in a non-bundled, statically-served site.
馃帥 Configuration (.babelrc, package.json, cli command)
No configuration.
Bundling a vanilla, static website.
馃 Expected Behavior
A vanilla bundled website should behave the same before and after it's bundled.
馃槸 Current Behavior
includedScript.js
index.html
馃拋 Possible Solution
Execute normal included script tags in the global scope instead of scoping them. Required or otherwise imported scripts can still be scoped accordingly.
馃敠 Context
Trying to bundle a static website for production and use older libraries that rely on global scope.
馃實 Your Environment
The text was updated successfully, but these errors were encountered: