Bladeren bron

Updates dependencies

main
Eric Amodio 5 jaren geleden
bovenliggende
commit
1ac1e9eeaa
3 gewijzigde bestanden met toevoegingen van 361 en 300 verwijderingen
  1. +346
    -285
      package-lock.json
  2. +6
    -6
      package.json
  3. +9
    -9
      webpack.config.js

+ 346
- 285
package-lock.json
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 6
- 6
package.json Bestand weergeven

@ -4865,18 +4865,18 @@
}, },
"devDependencies": { "devDependencies": {
"@types/lodash-es": "4.17.1", "@types/lodash-es": "4.17.1",
"@types/node": "8.10.39",
"@types/node": "10.1.4",
"clean-webpack-plugin": "1.0.1", "clean-webpack-plugin": "1.0.1",
"css-loader": "2.1.0", "css-loader": "2.1.0",
"html-webpack-inline-source-plugin": "0.0.10", "html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "3.2.0", "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", "mini-css-extract-plugin": "0.5.0",
"node-sass": "4.11.0", "node-sass": "4.11.0",
"prettier": "1.16.3",
"prettier": "1.16.4",
"prettier-tslint": "0.4.2", "prettier-tslint": "0.4.2",
"sass-loader": "7.1.0", "sass-loader": "7.1.0",
"terser-webpack-plugin": "1.2.1",
"terser-webpack-plugin": "1.2.2",
"tslint": "5.12.1", "tslint": "5.12.1",
"tslint-loader": "3.5.4", "tslint-loader": "3.5.4",
"tslint-prettiest": "0.0.1", "tslint-prettiest": "0.0.1",
@ -4884,7 +4884,7 @@
"typescript": "3.2.4", "typescript": "3.2.4",
"vsce": "1.55.0", "vsce": "1.55.0",
"vscode": "1.1.28", "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 Bestand weergeven

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

Laden…
Annuleren
Opslaan