diff --git a/helloworld-web-sample/webpack.config.js b/helloworld-web-sample/webpack.config.js index ffab662a..fb5f7f9e 100644 --- a/helloworld-web-sample/webpack.config.js +++ b/helloworld-web-sample/webpack.config.js @@ -12,7 +12,8 @@ const path = require('path'); const webpack = require('webpack'); -const webExtensionConfig = /** @type WebpackConfig */ { +/** @type WebpackConfig */ +const webExtensionConfig = { mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') target: 'webworker', // extensions run in a webworker context entry: { diff --git a/lsp-web-extension-sample/webpack.config.js b/lsp-web-extension-sample/webpack.config.js index bf1e7931..dd08b562 100644 --- a/lsp-web-extension-sample/webpack.config.js +++ b/lsp-web-extension-sample/webpack.config.js @@ -13,7 +13,8 @@ const path = require('path'); -const browserClientConfig = /** @type WebpackConfig */ { +/** @type WebpackConfig */ +const browserClientConfig = { context: path.join(__dirname, 'client'), mode: 'none', target: 'webworker', // web extensions run in a webworker context @@ -55,7 +56,8 @@ const browserClientConfig = /** @type WebpackConfig */ { devtool: 'source-map', }; -const browserServerConfig = /** @type WebpackConfig */ { +/** @type WebpackConfig */ +const browserServerConfig = { context: path.join(__dirname, 'server'), mode: 'none', target: 'webworker', // web extensions run in a webworker context