-
Notifications
You must be signed in to change notification settings - Fork 672
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
AMD plugin bundling #983
Comments
It is a bit hard to follow that the core issue is since it is unclear what loader plugin is being used and how it is failing in the build. Loader plugins can participate in the build, even specifying a separate "plubinBuilder" module to be run just in the builds, but the API it is not the greatest or well explained. It might be worth looking at the text plugin to see how it interacts with the build system. |
There are four core issues here :
Anyway, I just learnt that our Jenkins build breaks because of the changes I made to make these modules work nicely with r.js, so it's not just a cosmetic improvement I'm looking for. |
"full/path/to/ModuleA" is an exists module? |
"full/path/to/ModuleA" is the full path to the module I'm defining here. |
I'm currently using r.js to bundle my project. Everything works fine, except for where plugins are used.
After a few hours of tinkering with my code, I came up with the following workaround :
Basically, what I do is this :
define
function ifwindow
is not definedload
method ifwindow
is not definedwindow
is not defined inside myload
method, I load my dependencies, along with wherever else needs to be loaded thereThis seems to do the trick, but I'm not quite satisfied with this solution :
load
methodIs there a way I can avoid having to use named modules, full path dependencies and/or listing my dependencies twice?
The text was updated successfully, but these errors were encountered: