You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
target: 'node',// vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
20
-
mode: 'none',// this leaves the source code as close as possible to the original (when packaging we set this to 'production')
19
+
exportdefaultenv=>{
20
+
/** @type WebpackConfig */
21
+
constextensionConfig={
22
+
target: 'node',// vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
23
+
mode: 'none',// this leaves the source code as close as possible to the original (when packaging we set this to 'production')
21
24
22
-
entry: {extension: './src/extension.ts',markdown: './src/markdown/markdown.entry.ts'},// the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
23
-
output: {
24
-
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
25
-
path: path.resolve(__dirname,'dist'),
26
-
filename: '[name].js',
27
-
libraryTarget: 'commonjs2',
28
-
},
29
-
externals: {
30
-
vscode: 'commonjs vscode',// the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
31
-
// modules added here also need to be added in the .vscodeignore file
32
-
},
33
-
resolve: {
34
-
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
entry: {extension: './src/extension.ts',markdown: './src/markdown/markdown.entry.ts'},// the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
26
+
output: {
27
+
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
28
+
path: path.resolve(__dirname,'dist'),
29
+
filename: '[name].js',
30
+
libraryTarget: 'commonjs2',
31
+
},
32
+
externals: {
33
+
vscode: 'commonjs vscode',// the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
34
+
// modules added here also need to be added in the .vscodeignore file
35
+
},
36
+
resolve: {
37
+
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
0 commit comments