Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serwist/webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serwist/webpack-plugin - npm Package Compare versions

Comparing version 9.0.0-preview.4 to 9.0.0-preview.5

5

dist/index.js

@@ -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);

2

dist/inject-manifest.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc