From 0a3bac35173cb8e7f1ea5c7fc91f5f7e228b8c13 Mon Sep 17 00:00:00 2001 From: Nilay Majorwar Date: Wed, 16 Feb 2022 20:45:28 +0530 Subject: [PATCH] Add fix for engines using dependencies --- worker-pack/webpack.common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/worker-pack/webpack.common.js b/worker-pack/webpack.common.js index 5c829d7..ef05818 100644 --- a/worker-pack/webpack.common.js +++ b/worker-pack/webpack.common.js @@ -11,15 +11,13 @@ for (const lang of langNames) { entryPoints[lang] = `./languages/${lang}/engine.ts`; } -console.log(path.resolve(__dirname, "worker-pack/tsconfig.json")); - module.exports = { entry: entryPoints, output: { path: path.resolve(__dirname, "../public/workers"), filename: "[name].js", }, - resolve: { extensions: [".ts"] }, + resolve: { extensions: [".ts", ".js"] }, module: { rules: [ {