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

Upgrade SystemJS/ES6ML for linkset bug #982

Merged
merged 1 commit into from
Dec 30, 2016
Merged

Upgrade SystemJS/ES6ML for linkset bug #982

merged 1 commit into from
Dec 30, 2016

Conversation

matthewp
Copy link
Member

This fixes a bug where if you did this:

require("foo.txt!some-plugin");
require("some-plugin");

The app would never load, because some-plugin is loaded by the plugin
extension and by the main module. The reason is that it doesn't create a
new linkSet when the plugin import happens, because it doesn't think it
needs to. The fix is to check if the module that is doing the importing
is part of that same linkSet, and if so create a new one.

This fixes a bug where if you did this:

```js
require("foo.txt!some-plugin");
require("some-plugin");
```

The app would never load, because some-plugin is loaded by the plugin
extension and by the main module. The reason is that it doesn't create a
new linkSet when the plugin import happens, because it doesn't think it
needs to. The fix is to check if the module that is doing the importing
is part of that same linkSet, and if so create a new one.
@matthewp matthewp self-assigned this Dec 29, 2016
@matthewp matthewp merged commit 81f5b25 into master Dec 30, 2016
@matthewp matthewp deleted the linkset branch December 30, 2016 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant