This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
webpack.config.js
51 lines (46 loc) · 1.61 KB
/
webpack.config.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
"use strict";
const path = require("path");
/** @type {import("webpack").Configuration} */
const config = {
devtool: "source-map",
entry: "./src/extension.ts",
externals: {
"azure-arm-logic": "commonjs azure-arm-logic",
"azure-arm-resource": "commonjs azure-arm-resource",
"fs-extra": "commonjs fs-extra",
"glob": "commonjs glob",
"js-yaml": "commonjs js-yaml",
"ms-rest": "commonjs ms-rest",
"request": "commonjs request",
"request-promise-native": "commonjs request-promise-native",
"vscode": "commonjs vscode",
"vscode-azureextensionui": "commonjs vscode-azureextensionui",
"vscode-extension-telemetry": "commonjs vscode-extension-telemetry",
"vscode-nls": "commonjs vscode-nls"
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
loader: "ts-loader"
}
]
},
output: {
devtoolModuleFilenameTemplate: "../[resource-path]",
filename: "extension.js",
libraryTarget: "commonjs2",
path: path.resolve(__dirname, "out")
},
resolve: {
extensions: [".ts", ".js"]
},
target: "node"
};
module.exports = config;