Skip to content

Commit

Permalink
6.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Jan 11, 2020
1 parent a13f88f commit bfce71e
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
SystemJS 6.1.9
* Fix bug where url query params and hash broke module type file extension check (https://github.com/systemjs/systemjs/pull/2096 @LarsDenBakker)

SystemJS 6.1.8
* Ensure that __esModule is copied to ns even if it isn't enumerable. Improves webpack interop when using libraryTarget system.

Expand Down
8 changes: 5 additions & 3 deletions dist/extras/module-types.js
Expand Up @@ -8,7 +8,9 @@

systemJSPrototype.instantiate = function (url, parent) {
const loader = this;
const ext = url.slice(url.lastIndexOf('.'));
const path = url.split('?')[0].split('#')[0];
const ext = path.slice(path.lastIndexOf('.'));

switch (ext) {
case '.css':
return loadDynamicModule(function (_export, source) {
Expand All @@ -34,7 +36,7 @@
const deps = [];
const setters = [];
const importObj = {};

// we can only set imports if supported (eg early Safari doesnt support)
if (WebAssembly.Module.imports)
WebAssembly.Module.imports(module).forEach(function (impt) {
Expand All @@ -46,7 +48,7 @@
});
}
});

return [deps, function (_export) {
return {
setters: setters,
Expand Down
2 changes: 1 addition & 1 deletion dist/extras/module-types.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/extras/module-types.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/s.js
@@ -1,5 +1,5 @@
/*
* SJS 6.1.8
* SJS 6.1.9
* Minimal SystemJS Build
*/
(function () {
Expand Down
10 changes: 6 additions & 4 deletions dist/system.js
@@ -1,5 +1,5 @@
/*
* SystemJS 6.1.8
* SystemJS 6.1.9
*/
(function () {
const hasSelf = typeof self !== 'undefined';
Expand Down Expand Up @@ -713,7 +713,9 @@

systemJSPrototype.instantiate = function (url, parent) {
const loader = this;
const ext = url.slice(url.lastIndexOf('.'));
const path = url.split('?')[0].split('#')[0];
const ext = path.slice(path.lastIndexOf('.'));

switch (ext) {
case '.css':
return loadDynamicModule(function (_export, source) {
Expand All @@ -739,7 +741,7 @@
const deps = [];
const setters = [];
const importObj = {};

// we can only set imports if supported (eg early Safari doesnt support)
if (WebAssembly.Module.imports)
WebAssembly.Module.imports(module).forEach(function (impt) {
Expand All @@ -751,7 +753,7 @@
});
}
});

return [deps, function (_export) {
return {
setters: setters,
Expand Down
4 changes: 2 additions & 2 deletions dist/system.min.js

Large diffs are not rendered by default.

0 comments on commit bfce71e

Please sign in to comment.