@serwist/webpack-plugin
Advanced tools
Comparing version 9.0.0-preview.4 to 9.0.0-preview.5
@@ -158,6 +158,5 @@ import { transformManifest, getSourceMapURL, validateWebpackInjectManifestOptions, escapeRegExp, replaceAndUpdateSourceMap } from '@serwist/build'; | ||
} | ||
propagateWebpackConfig(compiler) { | ||
propagateWebpackConfig() { | ||
const parsedSwSrc = upath.parse(this.config.swSrc); | ||
this.config = Object.assign({ | ||
mode: compiler.options.mode, | ||
swDest: `${parsedSwSrc.name}.js` | ||
@@ -195,3 +194,3 @@ }, this.config); | ||
apply(compiler) { | ||
this.propagateWebpackConfig(compiler); | ||
this.propagateWebpackConfig(); | ||
compiler.hooks.make.tapPromise(this.constructor.name, (compilation)=>this.handleMake(compilation, compiler).catch((error)=>{ | ||
@@ -198,0 +197,0 @@ compilation.errors.push(error); |
@@ -37,3 +37,3 @@ import type { WebpackInjectManifestOptions } from "@serwist/build"; | ||
*/ | ||
propagateWebpackConfig(compiler: webpack.Compiler): void; | ||
propagateWebpackConfig(): void; | ||
/** | ||
@@ -40,0 +40,0 @@ * `getManifestEntriesFromCompilation` with a few additional checks. |
{ | ||
"name": "@serwist/webpack-plugin", | ||
"version": "9.0.0-preview.4", | ||
"version": "9.0.0-preview.5", | ||
"type": "module", | ||
@@ -52,3 +52,3 @@ "description": "A plugin for your Webpack build process, helping you generate a manifest of local files that should be precached.", | ||
"upath": "2.0.1", | ||
"@serwist/build": "9.0.0-preview.4" | ||
"@serwist/build": "9.0.0-preview.5" | ||
}, | ||
@@ -61,3 +61,3 @@ "devDependencies": { | ||
"webpack": "5.90.1", | ||
"@serwist/constants": "9.0.0-preview.4" | ||
"@serwist/constants": "9.0.0-preview.5" | ||
}, | ||
@@ -64,0 +64,0 @@ "peerDependencies": { |
@@ -63,3 +63,3 @@ /* | ||
*/ | ||
propagateWebpackConfig(compiler: webpack.Compiler): void { | ||
propagateWebpackConfig(): void { | ||
const parsedSwSrc = upath.parse(this.config.swSrc); | ||
@@ -70,3 +70,2 @@ // Because this.config is listed last, properties that are already set | ||
{ | ||
mode: compiler.options.mode, | ||
// Use swSrc with a hardcoded .js extension, in case swSrc is a .ts file. | ||
@@ -130,3 +129,3 @@ swDest: `${parsedSwSrc.name}.js`, | ||
apply(compiler: webpack.Compiler): void { | ||
this.propagateWebpackConfig(compiler); | ||
this.propagateWebpackConfig(); | ||
@@ -133,0 +132,0 @@ compiler.hooks.make.tapPromise(this.constructor.name, (compilation) => |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54589
1154
+ Added@serwist/background-sync@9.0.0-preview.5(transitive)
+ Added@serwist/broadcast-update@9.0.0-preview.5(transitive)
+ Added@serwist/build@9.0.0-preview.5(transitive)
+ Added@serwist/cacheable-response@9.0.0-preview.5(transitive)
+ Added@serwist/core@9.0.0-preview.5(transitive)
+ Added@serwist/expiration@9.0.0-preview.5(transitive)
+ Added@serwist/google-analytics@9.0.0-preview.5(transitive)
+ Added@serwist/precaching@9.0.0-preview.5(transitive)
+ Added@serwist/routing@9.0.0-preview.5(transitive)
+ Added@serwist/strategies@9.0.0-preview.5(transitive)
- Removed@serwist/background-sync@9.0.0-preview.4(transitive)
- Removed@serwist/broadcast-update@9.0.0-preview.4(transitive)
- Removed@serwist/build@9.0.0-preview.4(transitive)
- Removed@serwist/cacheable-response@9.0.0-preview.4(transitive)
- Removed@serwist/core@9.0.0-preview.4(transitive)
- Removed@serwist/expiration@9.0.0-preview.4(transitive)
- Removed@serwist/google-analytics@9.0.0-preview.4(transitive)
- Removed@serwist/precaching@9.0.0-preview.4(transitive)
- Removed@serwist/routing@9.0.0-preview.4(transitive)
- Removed@serwist/strategies@9.0.0-preview.4(transitive)