@atlaspack/runtime-service-worker 2.14.27-inline-requires-take-2-850fb4568.0 → 2.14.28-dev-optimised-prelude-6fa233c65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-service-worker",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.28-dev-optimised-prelude-6fa233c65.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.14.
|
|
20
|
-
"@atlaspack/
|
|
19
|
+
"@atlaspack/plugin": "2.14.28-dev-optimised-prelude-6fa233c65.0",
|
|
20
|
+
"@atlaspack/types": "2.15.18-dev-optimised-prelude-6fa233c65.0",
|
|
21
|
+
"@atlaspack/utils": "2.18.5-dev-optimised-prelude-6fa233c65.0",
|
|
21
22
|
"nullthrows": "^1.1.1"
|
|
22
23
|
},
|
|
23
24
|
"type": "commonjs",
|
|
@@ -25,5 +26,5 @@
|
|
|
25
26
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
26
27
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
27
28
|
},
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "6fa233c656e8abea0878044e1fc0dc2023077a53"
|
|
29
30
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {Runtime} from '@atlaspack/plugin';
|
|
2
2
|
import {urlJoin} from '@atlaspack/utils';
|
|
3
|
+
import type {Asset} from '@atlaspack/types';
|
|
3
4
|
|
|
4
5
|
export default new Runtime({
|
|
5
6
|
apply({bundle, bundleGraph}) {
|
|
@@ -7,7 +8,7 @@ export default new Runtime({
|
|
|
7
8
|
return [];
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
let asset = bundle.traverse((node, _, actions) => {
|
|
11
|
+
let asset = bundle.traverse<Asset>((node, _, actions) => {
|
|
11
12
|
if (
|
|
12
13
|
node.type === 'dependency' &&
|
|
13
14
|
node.value.specifier === '@atlaspack/service-worker' &&
|
|
@@ -39,7 +40,6 @@ _register(manifest, version);
|
|
|
39
40
|
|
|
40
41
|
return [
|
|
41
42
|
{
|
|
42
|
-
// @ts-expect-error TS2339
|
|
43
43
|
filePath: asset.filePath,
|
|
44
44
|
code,
|
|
45
45
|
isEntry: true,
|