From 68b46958c59a726f0d356297fdad6aba02207702 Mon Sep 17 00:00:00 2001 From: Rafael Contreras Date: Sun, 18 Jul 2021 10:08:32 +1200 Subject: [PATCH] Fix build extension --- package.json | 3 +-- src/index.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 201da9d..54ddc46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "workerize-loader-wp5", - "version": "2.0.1", + "version": "2.0.2", "description": "Automatically move a module into a Web Worker (Webpack loader)", "keywords": [ "webpack", @@ -56,7 +56,6 @@ "peerDependencies": { "webpack": "5^" }, - "type": "module", "bugs": { "url": "https://github.com/rafcontreras/workerize-loader/issues" }, diff --git a/src/index.js b/src/index.js index 17d54c8..5e232e2 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,7 @@ const exportDeclarationHook = (parser, handler) => { return parser.plugin("export declaration", handler); }; -loader.pitch = (request) => { +loader.pitch = function(request) { this.cacheable(false); const options = loaderUtils.getOptions(this) || {};