-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Added support for AMD/CommonJS/Globals. #12909
Conversation
Lots of linting exception. |
@raulferras Per the contribution guidelines, please use 2-space indents instead of tabs. |
Sure. |
Added transition dependency to AMD definitions.
The "transition" dependencies won't work. The dependencies must not end with ".js". So
should be replaced by
in
|
Ok, fixed. |
Hope this finally is going to make it in. Right now I can't even use jquery with AMD (with noconflict) because of: Line 35 in 73ad81d
|
I don't know of AMD, but with CommonJS (webpack) I'm currently doing this: var $ = require('jquery');
window.jQuery = $;
require('bootstrap'); This does it for me. |
@raulferras You should use |
That's true for bootstrap specifically, but other jQuery plugins require explicitly to overwrite |
Running cross-browser tests on Travis... https://travis-ci.org/twbs/bootstrap/builds/20557300 |
Browser tests pass!: https://travis-ci.org/twbs/bootstrap/jobs/20557303 😄 |
We should also add |
@twbs/team: So, aside from needing to test this manually/interactively in a few browsers beforehand, are there any objections to merging this PR? |
I have zero objections as I know nothing about this. We'll need @fat to weigh in. |
yes. i object |
this stuff should be added at build time… dont think we should put it on the raw plugins |
i think ryan florence wrote a really complete version of this at one point… maybe we could use that to add at compile time? |
If this is added at build time, will we be allowed to build the different plugins indepently? |
@raulferras It'd produce individual per-plugin "module-ized" JS files, if that's what you mean. |
yes, great then. |
the more i think about this… the more I think that getting into the business of being other projects build systems seems like a bad idea. I think as a guiding rule, it's generally safer to lean towards raw components, then trying to include all the hardware to connect to every 3rd party lib under the sun. thoughts? |
Agree. 2014-03-23 2:51 GMT+01:00 Jacob [email protected]:
Zlatan Vasović - ZDroid |
status? guide lines? any example out there? thanks! |
closing in favor of #13772 |
Will hopefully revert this reversion and land a fully-working version of UMD in v3.3.0. Revert "some changes from #13801 - add strict mode back and ==" This reverts commit 2b302f6. Revert "Fix regression of #10038 introduced by #13772" This reverts commit e9d6756. Revert "MD/CommonJS/Globals #12909" This reverts commit 1c6fa90. Revert "address #13811" This reverts commit f347d7d. Conflicts: js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tab.js js/tooltip.js
Pull request related to #12783