@cara/porter
Advanced tools
Comparing version 4.0.0-beta.18 to 4.0.0
@@ -467,3 +467,3 @@ /* eslint-env browser */ | ||
if (!parent.version) { | ||
for (const key in alias) { | ||
for (var key in alias) { | ||
if (specifier.indexOf(key) === 0) { | ||
@@ -470,0 +470,0 @@ specifier = alias[key] + specifier.slice(key.length); |
{ | ||
"name": "@cara/porter", | ||
"description": "A middleware for web modules", | ||
"version": "4.0.0-beta.18", | ||
"version": "4.0.0", | ||
"main": "src/porter.js", | ||
@@ -43,3 +43,3 @@ "repository": { | ||
"license": "BSD-3-Clause", | ||
"gitHead": "38773a6381730f653c762bd35967c8c42f5ffacb" | ||
"gitHead": "88b35d98657b24ad8e494edffc74f18106bc3118" | ||
} |
@@ -126,3 +126,3 @@ 'use strict'; | ||
} | ||
// might be WasmModule | ||
// might be WasmModule or web worker | ||
if (mod.isolated || (format === '.js' && mod.isRootEntry)) continue; | ||
@@ -129,0 +129,0 @@ yield* iterateEntry(mod, preload); |
@@ -568,5 +568,8 @@ 'use strict'; | ||
for (const mod of Object.values(this.files)) { | ||
if (mod.isRootEntry) entries.push(mod.file); | ||
// .wasm needs to be bundled before other entries to generate correct manifest | ||
if (mod.file.endsWith('.wasm')) entries.unshift(mod.file); | ||
if (mod.isRootEntry) { | ||
entries.push(mod.file); | ||
} else if (mod.file.endsWith('.wasm')) { | ||
// .wasm needs to be bundled before other entries to generate correct manifest | ||
entries.unshift(mod.file); | ||
} | ||
} | ||
@@ -577,3 +580,3 @@ | ||
for (const entry of entries) { | ||
for (const entry of new Set(entries)) { | ||
const bundle = bundles[entry] || Bundle.create({ | ||
@@ -580,0 +583,0 @@ packet: this, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
118044
3097
1