new-webpack-4-vscode

set module resultion to node

3/21/2022 10:36:09 AM

Changes

tsconfig.json 2(+2 -0)

Details

diff --git a/package-lock.json b/package-lock.json
index 4fc9266..eec6c39 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "webpackapp",
-  "version": "0.0.2",
+  "version": "0.0.3",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "webpackapp",
-      "version": "0.0.2",
+      "version": "0.0.3",
       "license": "0BSD",
       "devDependencies": {
         "@babel/core": "7.17.8",

tsconfig.json 2(+2 -0)

diff --git a/tsconfig.json b/tsconfig.json
index d49b785..1a5140c 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,6 +2,7 @@
   "compilerOptions": {    
     "target": "es6",
     "sourceMap": true,
+		"moduleResolution": "node",
     "experimentalDecorators": true,
     "emitDecoratorMetadata": true,
     "skipDefaultLibCheck": true,
@@ -9,6 +10,7 @@
     "strict": true,
     "lib": [ "es6", "dom" ],
     "types": [ ],
+		"baseUrl": "./node_modules",
     "allowJs": true
   },
   "exclude": [