From 2ce17be921432e828e4dbe26b33719749d7bfecd Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" <1474479+chenhunghan@users.noreply.github.com> Date: Wed, 25 Nov 2020 15:01:31 +0800 Subject: [PATCH] Remove nodeExternals, remove inline-source-map, add .js to resolve.extensions Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> --- webpack.extensions.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/webpack.extensions.ts b/webpack.extensions.ts index bde47c8598..be27502cb6 100644 --- a/webpack.extensions.ts +++ b/webpack.extensions.ts @@ -1,7 +1,6 @@ import path from 'path'; import webpack from "webpack"; -import nodeExternals from "webpack-node-externals"; import MiniCssExtractPlugin from "mini-css-extract-plugin"; import { sassCommonVars } from "./src/common/vars"; @@ -11,12 +10,6 @@ export default function (): webpack.Configuration { // Compile for Electron for renderer process // see target: "electron-renderer", - externals: [ - // in order to ignore all modules in node_modules folder - // - nodeExternals() - ], - devtool: 'inline-source-map', entry: './src/extensions/extension-api.ts', output: { filename: 'extension-api.js', @@ -73,7 +66,7 @@ export default function (): webpack.Configuration { ] }, resolve: { - extensions: ['.ts', '.tsx'] + extensions: ['.ts', '.tsx', '.js'] }, plugins: [ // In ts-loader's README they said to output a built .d.ts file,