-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Locate-only plugins are broken/ignored in 0.20.5 (workaround provided) #1568
Labels
Comments
A working workaround: exports.fetch = function(load, origFetch) {
return origFetch(load);
}
exports.locate = function(load) {
return Promise.resolve(load.address + '.js');
}; |
Rush
changed the title
Locate-only plugins are broken/ignored in 0.20
Locate-only plugins are broken/ignored in 0.20.5
Feb 7, 2017
Another issue, previously (in pre-0.20) it was possible to define a plugin without a promise: exports.locate = function(load) {
return load.address + '.js';
}; Would be nice to have it for compatibility. |
Rush
changed the title
Locate-only plugins are broken/ignored in 0.20.5
Locate-only plugins are broken/ignored in 0.20.5 + workaround
Feb 7, 2017
Rush
changed the title
Locate-only plugins are broken/ignored in 0.20.5 + workaround
Locate-only plugins are broken/ignored in 0.20.5 (workaround provided)
Feb 7, 2017
Thanks this would be a bug, will aim to fix this. |
Fixed in 7d47f1b. |
@guybedford thanks. What about the first part of the issue where a plugin with |
Released in 0.20.7. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample plugin:
The result is being assigned here
systemjs/src/instantiate.js
Line 158 in f790864
But since the plugin does not have the
fetch
method it is then being ignored:systemjs/src/instantiate.js
Line 167 in f790864
the provided
load.address
is only used when also.fetch
is providedsystemjs/src/instantiate.js
Line 172 in f790864
The text was updated successfully, but these errors were encountered: