File: webpack.config.js

package info (click to toggle)
node-vscode-lsp 1.0.0~git20230424.1320922-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,140 kB
  • sloc: javascript: 451; sh: 41; makefile: 23
file content (25 lines) | stat: -rw-r--r-- 741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
//@ts-check
/** @typedef {import('webpack').Configuration} WebpackConfig **/

'use strict';

module.exports = {
	context: __dirname,
	mode: 'none',
	target: 'webworker',
	resolve: {
		mainFields: ['module', 'main'],
		extensions: ['.js'] // support ts-files and js-files
	},
	entry: {
		extension: './lib/browser/main.js',
	},
	devtool: 'source-map',
	output: {
		filename: 'main.js'
	}
};