提交 8330a695 编写于 作者: E Erich Gamma

fixing web packing

上级 1a117184
src/**
tsconfig.json
\ No newline at end of file
out/**
tsconfig.json
.vscode/**
extension.webpack.config.js
yarn.lock
\ No newline at end of file
......@@ -7,6 +7,8 @@
'use strict';
const path = require('path');
const withDefaults = require('../shared.webpack.config');
module.exports = withDefaults({
......@@ -14,7 +16,13 @@ module.exports = withDefaults({
entry: {
extension: './src/main.ts',
},
externals: {
'vscode-nls': 'commonjs vscode-nls',
output: {
filename: 'main.js',
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
},
resolve: {
mainFields: ['module', 'main'],
extensions: ['.ts', '.js'] // support ts-files and js-files
}
});
......@@ -19,7 +19,7 @@
"dependencies": {
"jsonc-parser": "^2.0.2",
"minimatch": "^3.0.4",
"request-light": "^0.2.3",
"request-light": "^0.2.4",
"vscode-nls": "^4.0.0"
},
"devDependencies": {
......
......@@ -75,17 +75,13 @@ ms@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
request-light@^0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/request-light/-/request-light-0.2.3.tgz#a18635ec6dd92f8705c019c42ef645f684d94f7e"
request-light@^0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/request-light/-/request-light-0.2.4.tgz#3cea29c126682e6bcadf7915353322eeba01a755"
dependencies:
http-proxy-agent "^2.1.0"
https-proxy-agent "^2.2.1"
vscode-nls "^3.2.2"
vscode-nls@^3.2.2:
version "3.2.5"
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-3.2.5.tgz#25520c1955108036dec607c85e00a522f247f1a4"
vscode-nls "^4.0.0"
vscode-nls@^4.0.0:
version "4.0.0"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册