@serwist/webpack-plugin 9.4.2 → 9.4.4

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.
@@ -1,8 +1,5 @@
1
1
  import path from 'node:path';
2
-
3
- const toUnix = (p)=>{
4
- return p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
5
- };
2
+ import { toUnix } from '@serwist/utils';
6
3
 
7
4
  const performChildCompilation = async (compiler, compilation, name, src, dest, plugins)=>{
8
5
  const childCompiler = compilation.createChildCompiler(name, {
@@ -34,4 +31,4 @@ const relativeToOutputPath = (compilation, originalPath)=>{
34
31
  return originalPath;
35
32
  };
36
33
 
37
- export { performChildCompilation as p, relativeToOutputPath as r, toUnix as t };
34
+ export { performChildCompilation as p, relativeToOutputPath as r };
@@ -1,5 +1,6 @@
1
1
  import { p as performChildCompilation, r as relativeToOutputPath } from './chunks/relative-to-output-path.js';
2
2
  import 'node:path';
3
+ import '@serwist/utils';
3
4
 
4
5
  class ChildCompilationPlugin {
5
6
  src;
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import path from 'node:path';
2
2
  import { transformManifest, getSourceMapURL, escapeRegExp, replaceAndUpdateSourceMap } from '@serwist/build';
3
- import { r as relativeToOutputPath, p as performChildCompilation, t as toUnix } from './chunks/relative-to-output-path.js';
3
+ import { toUnix } from '@serwist/utils';
4
4
  import prettyBytes from 'pretty-bytes';
5
5
  import crypto from 'node:crypto';
6
+ import { r as relativeToOutputPath, p as performChildCompilation } from './chunks/relative-to-output-path.js';
6
7
  import { validationErrorMap, SerwistConfigError } from '@serwist/build/schema';
7
8
 
8
9
  const getAssetHash = (asset)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/webpack-plugin",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
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,7 +60,8 @@
60
60
  "dependencies": {
61
61
  "pretty-bytes": "6.1.1",
62
62
  "zod": "4.2.1",
63
- "@serwist/build": "9.4.2"
63
+ "@serwist/build": "9.4.4",
64
+ "@serwist/utils": "9.4.4"
64
65
  },
65
66
  "devDependencies": {
66
67
  "@types/node": "25.0.3",
@@ -68,8 +69,7 @@
68
69
  "rollup": "4.54.0",
69
70
  "typescript": "5.9.3",
70
71
  "webpack": "5.104.1",
71
- "@serwist/configs": "9.4.2",
72
- "@serwist/utils": "9.4.2"
72
+ "@serwist/configs": "9.4.4"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "typescript": ">=5.0.0",