Kaynağa Gözat

Update webpack to v5

sanex 4 yıl önce
ebeveyn
işleme
b4aa4d8edc

+ 1 - 1
bin/javascript-obfuscator

@@ -1,3 +1,3 @@
 #!/usr/bin/env node
 
-require('../dist/index.cli').obfuscate(process.argv);
+require('../dist/index.cli').JavaScriptObfuscator.obfuscate(process.argv);

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 23
dist/index.cli.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 23
dist/index.js


+ 2 - 2
package.json

@@ -54,7 +54,7 @@
     "@types/mkdirp": "1.0.1",
     "@types/mocha": "8.0.3",
     "@types/multimatch": "4.0.0",
-    "@types/node": "14.10.3",
+    "@types/node": "14.11.1",
     "@types/rimraf": "3.0.0",
     "@types/sinon": "9.0.5",
     "@types/string-template": "1.0.2",
@@ -82,7 +82,7 @@
     "ts-loader": "8.0.3",
     "ts-node": "9.0.0",
     "typescript": "4.0.2",
-    "webpack": "4.44.1",
+    "webpack": "5.0.0-beta.31",
     "webpack-cli": "3.3.12",
     "webpack-node-externals": "2.5.2"
   },

+ 1 - 1
webpack/webpack.browser.config.js

@@ -44,7 +44,7 @@ module.exports = {
         hints: false
     },
     stats: {
-        maxModules: 0,
+        excludeModules: true,
         warnings: false
     }
 };

+ 9 - 1
webpack/webpack.node.config.js

@@ -34,6 +34,14 @@ module.exports = {
     resolve: {
         extensions: ['.ts']
     },
+    cache: {
+        type: "filesystem",
+        buildDependencies: {
+            config: [
+                __filename
+            ]
+        }
+    },
     plugins: [
         new webpack.BannerPlugin(
             {
@@ -66,6 +74,6 @@ module.exports = {
         library: 'JavaScriptObfuscator'
     },
     stats: {
-        maxModules: 0
+        excludeModules: true
     }
 };

Dosya farkı çok büyük olduğundan ihmal edildi
+ 87 - 523
yarn.lock


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor