worker-loader
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -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 @@ |
@@ -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 @@ |
{ | ||
"name": "worker-loader", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "worker loader module for webpack", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
35394
314