Skip to content
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

Missing semicolon at the end of bootstrap.js causes issues when bundled with other scripts #23175

Closed
judowalker opened this issue Jul 29, 2017 · 4 comments
Labels

Comments

@judowalker
Copy link

judowalker commented Jul 29, 2017

I am bundling bootstrap.js with other scripts and I get a runtime error which I found out is due to a missing semicolon at the end of bootstrap.js:
ba312c2#diff-5492e5c74c97b8b5256879d136b55c88R3631

Only the unminified file is missing the semicolon.

@XhmikosR
Copy link
Member

XhmikosR commented Jul 30, 2017

/CC @bardiharborow @Johann-S

That is why I don't like the no semi approach, personally. That being said, can't we just add the end of file semi here?

@Johann-S
Copy link
Member

Yes that's just a mistake from stamp.js (Babel add semicolons to our dist files see : https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.js#L97) and when #22888 will be merge stamp.js won't exist 😄

@XhmikosR
Copy link
Member

XhmikosR commented Jul 31, 2017 via email

@XhmikosR
Copy link
Member

XhmikosR commented Jul 31, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants