Browse Source

Update node-sass and webpack dependencies

Michal Malý 3 years ago
parent
commit
4a19aedec8
3 changed files with 178 additions and 580 deletions
  1. 169 571
      package-lock.json
  2. 4 4
      package.json
  3. 5 5
      webpack.config.common.js

File diff suppressed because it is too large
+ 169 - 571
package-lock.json


+ 4 - 4
package.json

@@ -110,15 +110,15 @@
     "http-server": "^0.12.3",
     "jest": "^26.6.3",
     "mini-css-extract-plugin": "^1.3.2",
-    "node-sass": "^5.0.0",
+    "node-sass": "^6.0.0",
     "raw-loader": "^4.0.2",
-    "sass-loader": "^10.1.0",
+    "sass-loader": "^11.1.1",
     "simple-git": "^2.25.0",
     "style-loader": "^2.0.0",
     "ts-jest": "^26.4.4",
     "typescript": "^4.2.3",
-    "webpack": "^4.44.1",
-    "webpack-cli": "^3.3.12",
+    "webpack": "^5.37.1",
+    "webpack-cli": "^4.7.0",
     "webpack-version-file-plugin": "^0.4.0"
   },
   "dependencies": {

+ 5 - 5
webpack.config.common.js

@@ -48,16 +48,17 @@ const sharedConfig = {
             'node_modules',
             path.resolve(__dirname, 'lib/')
         ],
+        fallback: {
+            fs: false
+        }
     },
     watchOptions: {
         aggregateTimeout: 750
-    },
-    devtool: ''
+    }
 };
 
 function createEntry(src, outFolder, outFilename, isNode) {
     return {
-        node: isNode ? void 0 : { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
         target: isNode ? 'node' : void 0,
         entry: path.resolve(__dirname, `lib/${src}.js`),
         output: { filename: `${outFilename}.js`, path: path.resolve(__dirname, `build/${outFolder}`) },
@@ -67,7 +68,6 @@ function createEntry(src, outFolder, outFilename, isNode) {
 
 function createEntryPoint(name, dir, out, library) {
     return {
-        node: { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
         entry: path.resolve(__dirname, `lib/${dir}/${name}.js`),
         output: { filename: `${library || name}.js`, path: path.resolve(__dirname, `build/${out}`), library: library || out, libraryTarget: 'umd' },
         ...sharedConfig
@@ -101,4 +101,4 @@ module.exports = {
     createBrowserTest,
     createNodeEntryPoint,
     createNodeApp
-};
+};

Some files were not shown because too many files changed in this diff