Explorar el Código

Updates dependencies

main
Eric Amodio hace 5 años
padre
commit
1ac1e9eeaa
Se han modificado 3 ficheros con 361 adiciones y 300 borrados
  1. +346
    -285
      package-lock.json
  2. +6
    -6
      package.json
  3. +9
    -9
      webpack.config.js

+ 346
- 285
package-lock.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 6
- 6
package.json Ver fichero

@ -4865,18 +4865,18 @@
},
"devDependencies": {
"@types/lodash-es": "4.17.1",
"@types/node": "8.10.39",
"@types/node": "10.1.4",
"clean-webpack-plugin": "1.0.1",
"css-loader": "2.1.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "3.2.0",
"imagemin-webpack-plugin": "2.4.0",
"imagemin-webpack-plugin": "2.4.1",
"mini-css-extract-plugin": "0.5.0",
"node-sass": "4.11.0",
"prettier": "1.16.3",
"prettier": "1.16.4",
"prettier-tslint": "0.4.2",
"sass-loader": "7.1.0",
"terser-webpack-plugin": "1.2.1",
"terser-webpack-plugin": "1.2.2",
"tslint": "5.12.1",
"tslint-loader": "3.5.4",
"tslint-prettiest": "0.0.1",
@ -4884,7 +4884,7 @@
"typescript": "3.2.4",
"vsce": "1.55.0",
"vscode": "1.1.28",
"webpack": "4.29.0",
"webpack-cli": "3.2.1"
"webpack": "4.29.1",
"webpack-cli": "3.2.3"
}
}

+ 9
- 9
webpack.config.js Ver fichero

@ -28,24 +28,24 @@ module.exports = function(env, argv) {
if (fs.existsSync(vslsPath)) {
const vsls = require(vslsPath);
if (vsls.main === undefined) {
console.log('Fixing vsls package; Adding missing main to package.json...');
vsls.main = 'vscode.js';
fs.writeFileSync(vslsPath, `${JSON.stringify(vsls, undefined, 4)}\n`, 'utf8');
}
vslsPath = path.resolve(__dirname, 'node_modules/vsls/vscode.js');
if (fs.existsSync(vslsPath)) {
console.log(vslsPath);
let code = fs.readFileSync(vslsPath, 'utf8');
if (vslsPatchRegex.test(code)) {
console.log('found');
console.log('Fixing vsls package; Removing version lookup...');
code = code.replace(
vslsPatchRegex,
`const liveShareApiVersion = '${
vsls.version
}'; // require(path.join(__dirname, 'package.json')).version;`
);
console.log(code);
fs.writeFileSync(vslsPath, code, 'utf8');
}
}
@ -65,7 +65,7 @@ function getExtensionConfig(env) {
node: {
__dirname: false
},
devtool: 'source-map', //!env.production ? 'source-map' : undefined,
devtool: 'source-map',
output: {
libraryTarget: 'commonjs2',
filename: 'extension.js',
@ -76,7 +76,7 @@ function getExtensionConfig(env) {
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: true, // !env.production,
sourceMap: true,
terserOptions: {
ecma: 8,
// Keep the class names otherwise @log won't provide a useful name
@ -203,7 +203,7 @@ function getUIConfig(env) {
// main: ['./scss/main.scss']
},
mode: env.production ? 'production' : 'development',
devtool: !env.production ? 'eval-source-map' : undefined,
devtool: env.production ? undefined : 'eval-source-map',
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist/ui'),
@ -243,14 +243,14 @@ function getUIConfig(env) {
{
loader: 'css-loader',
options: {
sourceMap: !env.production,
sourceMap: true,
url: false
}
},
{
loader: 'sass-loader',
options: {
sourceMap: !env.production
sourceMap: true
}
}
],

Cargando…
Cancelar
Guardar