@serwist/webpack-plugin 8.0.4 → 8.1.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/dist/index.js +1 -2
- package/dist/index.old.cjs +1 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
1
|
import { transformManifest, getSourceMapURL, validateWebpackInjectManifestOptions, escapeRegExp, replaceAndUpdateSourceMap } from '@serwist/build';
|
|
3
2
|
import stringify from 'fast-json-stable-stringify';
|
|
4
3
|
import upath from 'upath';
|
|
@@ -417,7 +416,7 @@ const _generatedAssetNames = new Set();
|
|
|
417
416
|
this.config = Object.assign({
|
|
418
417
|
mode: compiler.options.mode,
|
|
419
418
|
// Use swSrc with a hardcoded .js extension, in case swSrc is a .ts file.
|
|
420
|
-
swDest:
|
|
419
|
+
swDest: parsedSwSrc.name + ".js"
|
|
421
420
|
}, this.config);
|
|
422
421
|
}
|
|
423
422
|
/**
|
package/dist/index.old.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var path = require('node:path');
|
|
4
3
|
var build = require('@serwist/build');
|
|
5
4
|
var stringify = require('fast-json-stable-stringify');
|
|
6
5
|
var upath = require('upath');
|
|
@@ -419,7 +418,7 @@ const _generatedAssetNames = new Set();
|
|
|
419
418
|
this.config = Object.assign({
|
|
420
419
|
mode: compiler.options.mode,
|
|
421
420
|
// Use swSrc with a hardcoded .js extension, in case swSrc is a .ts file.
|
|
422
|
-
swDest:
|
|
421
|
+
swDest: parsedSwSrc.name + ".js"
|
|
423
422
|
}, this.config);
|
|
424
423
|
}
|
|
425
424
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/webpack-plugin",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A plugin for your Webpack build process, helping you generate a manifest of local files that should be precached.",
|
|
6
6
|
"files": [
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"fast-json-stable-stringify": "2.1.0",
|
|
63
|
-
"rollup": "
|
|
63
|
+
"rollup": "4.9.1",
|
|
64
64
|
"upath": "2.0.1",
|
|
65
|
-
"@serwist/build": "8.0
|
|
65
|
+
"@serwist/build": "8.1.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"webpack": "4.4.0 || ^5.9.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@types/node": "20.10.
|
|
71
|
+
"@types/node": "20.10.5",
|
|
72
72
|
"@types/webpack": "5.28.5",
|
|
73
73
|
"pretty-bytes": "6.1.1",
|
|
74
|
-
"@serwist/constants": "8.0
|
|
74
|
+
"@serwist/constants": "8.1.0"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
|