Socket
Socket
Sign inDemoInstall

worker-loader

Package Overview
Dependencies
Maintainers
9
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worker-loader - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [3.0.5](https://github.com/webpack-contrib/worker-loader/compare/v3.0.4...v3.0.5) (2020-10-16)
### Bug Fixes
* determine webpack peer dependency version ([#296](https://github.com/webpack-contrib/worker-loader/issues/296)) ([8c63449](https://github.com/webpack-contrib/worker-loader/commit/8c634495419b4becc32b83e24c21e36ff720a2cd))
### [3.0.4](https://github.com/webpack-contrib/worker-loader/compare/v3.0.3...v3.0.4) (2020-10-09)

@@ -7,0 +14,0 @@

25

dist/index.js

@@ -34,22 +34,17 @@ "use strict";

let FetchCompileWasmPlugin;
let FetchCompileAsyncWasmPlugin;
let FetchCompileAsyncWasmPlugin; // determine the version of webpack peer dependency
// eslint-disable-next-line global-require, import/no-unresolved
try {
// Webpack 5, sync WASM
const useWebpack5 = require('webpack/package.json').version.startsWith('5.');
if (useWebpack5) {
// eslint-disable-next-line global-require, import/no-unresolved
FetchCompileWasmPlugin = require('webpack/lib/web/FetchCompileWasmPlugin');
} catch (ignoreError) {// Nothing
}
FetchCompileWasmPlugin = require('webpack/lib/web/FetchCompileWasmPlugin'); // eslint-disable-next-line global-require, import/no-unresolved
try {
// Webpack 5, async WASM
FetchCompileAsyncWasmPlugin = require('webpack/lib/web/FetchCompileAsyncWasmPlugin');
} else {
// eslint-disable-next-line global-require, import/no-unresolved
FetchCompileAsyncWasmPlugin = require('webpack/lib/web/FetchCompileAsyncWasmPlugin');
} catch (ignoreError) {// Nothing
} // Webpack 4
FetchCompileWasmPlugin = require('webpack/lib/web/FetchCompileWasmTemplatePlugin');
}
FetchCompileWasmPlugin = FetchCompileWasmPlugin || // eslint-disable-next-line global-require, import/no-unresolved
require('webpack/lib/web/FetchCompileWasmTemplatePlugin');
function loader() {}

@@ -56,0 +51,0 @@

2

package.json
{
"name": "worker-loader",
"version": "3.0.4",
"version": "3.0.5",
"description": "worker loader module for webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

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