Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/markdown-language-features/extension.webpack.config.js
3290 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
// @ts-check
6
import CopyPlugin from 'copy-webpack-plugin';
7
import withDefaults, { nodePlugins } from '../shared.webpack.config.mjs';
8
9
export default withDefaults({
10
context: import.meta.dirname,
11
resolve: {
12
mainFields: ['module', 'main']
13
},
14
entry: {
15
extension: './src/extension.ts',
16
},
17
plugins: [
18
...nodePlugins(import.meta.dirname), // add plugins, don't replace inherited
19
new CopyPlugin({
20
patterns: [
21
{
22
from: './node_modules/vscode-markdown-languageserver/dist/node/workerMain.js',
23
to: 'serverWorkerMain.js',
24
}
25
],
26
}),
27
],
28
});
29
30