Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/markdown-language-features/extension-browser.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 { browser, browserPlugins } from '../shared.webpack.config.mjs';
8
9
export default browser({
10
context: import.meta.dirname,
11
entry: {
12
extension: './src/extension.browser.ts'
13
},
14
plugins: [
15
...browserPlugins(import.meta.dirname), // add plugins, don't replace inherited
16
new CopyPlugin({
17
patterns: [
18
{
19
from: './node_modules/vscode-markdown-languageserver/dist/browser/workerMain.js',
20
to: 'serverWorkerMain.js',
21
}
22
],
23
}),
24
],
25
}, {
26
configFile: 'tsconfig.browser.json'
27
});
28
29