提交 74de533c 编写于 作者: J Johannes Rieken

enable source map generation

上级 776e491b
......@@ -8,8 +8,8 @@
const path = require('path');
module.exports = {
stats: 'errors-only',
// mode: 'none', // default is production
mode: 'production',
// mode: 'none',
context: __dirname,
target: 'node',
resolve: {
......@@ -26,4 +26,13 @@ module.exports = {
externals: {
'vscode': 'commonjs vscode',
},
stats: 'errors-only',
devtool: 'source-map',
module: {
rules: [{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
}]
}
};
......@@ -9,8 +9,8 @@ const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
stats: 'errors-only',
// mode: 'none', // default is production
mode: 'production',
// mode: 'none',
context: __dirname,
target: 'node',
node: {
......@@ -33,5 +33,14 @@ module.exports = {
},
plugins: [
new CopyWebpackPlugin([{ from: './out/*.sh', to: '[name].sh' }])
]
],
stats: 'errors-only',
devtool: 'source-map',
module: {
rules: [{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
}]
}
};
......@@ -540,6 +540,12 @@ async@^2.0.1:
dependencies:
lodash "^4.14.0"
async@^2.5.0:
version "2.6.1"
resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610"
dependencies:
lodash "^4.17.10"
async@~0.2.8:
version "0.2.10"
resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1"
......@@ -4314,6 +4320,15 @@ loader-utils@^1.1.0:
emojis-list "^2.0.0"
json5 "^0.5.0"
loader-utils@~0.2.2:
version "0.2.17"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348"
dependencies:
big.js "^3.1.3"
emojis-list "^2.0.0"
json5 "^0.5.0"
object-assign "^4.0.1"
locate-path@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
......@@ -4556,6 +4571,10 @@ lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.3.0:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
lodash@^4.17.10:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
lodash@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551"
......@@ -6841,6 +6860,14 @@ source-list-map@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085"
source-map-loader@^0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-0.2.3.tgz#d4b0c8cd47d54edce3e6bfa0f523f452b5b0e521"
dependencies:
async "^2.5.0"
loader-utils "~0.2.2"
source-map "~0.6.1"
source-map-resolve@^0.3.0:
version "0.3.1"
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.3.1.tgz#610f6122a445b8dd51535a2a71b783dfc1248761"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册