Skip to content

Commit 0027040

Browse files
committed
imports fix
1 parent 83486d0 commit 0027040

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

babel.config.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ module.exports = {
55
[
66
'babel-plugin-module-resolver',
77
{
8-
root: ['./src/'],
9-
alias: require('./tsconfig.json').compilerOptions.paths,
8+
root: './',
9+
alias: {
10+
"lib/utils": "./src/lib/utils",
11+
"lib/styles": "./src/lib/styles",
12+
"lib/types": "./src/lib/types"
13+
},
1014
},
1115
],
1216
],
13-
}
17+
}

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"target": "esnext",
1212
"skipLibCheck": true,
1313
"noImplicitAny": false,
14-
"baseUrl": ".",
14+
"baseUrl": "./",
1515
"paths": {
16-
"lib/*": ["src/lib/*"]
16+
"*": ["src/*", "node_modules/*"]
1717
},
1818
"declaration": false
1919
},

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,7 @@ babel-plugin-macros@^2.6.1:
30093009
cosmiconfig "^6.0.0"
30103010
resolve "^1.12.0"
30113011

3012-
babel-plugin-module-resolver@^4.0.0:
3012+
babel-plugin-module-resolver@4.0.0:
30133013
version "4.0.0"
30143014
resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.0.0.tgz#8f3a3d9d48287dc1d3b0d5595113adabd36a847f"
30153015
integrity sha512-3pdEq3PXALilSJ6dnC4wMWr0AZixHRM4utpdpBR9g5QG7B7JwWyukQv7a9hVxkbGFl+nQbrHDqqQOIBtTXTP/Q==
@@ -13416,7 +13416,7 @@ ts-loader@4.x.x:
1341613416
micromatch "^3.1.4"
1341713417
semver "^5.0.1"
1341813418

13419-
ts-loader@^7.0.0:
13419+
ts-loader@7.0.0:
1342013420
version "7.0.0"
1342113421
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-7.0.0.tgz#7c74dfa8956e3e33b91d98d4ed7b6f7575c35c25"
1342213422
integrity sha512-qq9iPK235Xf/uPS1I72CIwB8qpbW0rys3entnXO+rIo2km50lMmeHKCNn1m047W6Sk4kceF6n5NWEnq/V8xdYQ==
@@ -13446,7 +13446,7 @@ tsconfig-paths@^3.1.1:
1344613446
minimist "^1.2.0"
1344713447
strip-bom "^3.0.0"
1344813448

13449-
tsdx@^0.13.2:
13449+
tsdx@0.13.2:
1345013450
version "0.13.2"
1345113451
resolved "https://registry.yarnpkg.com/tsdx/-/tsdx-0.13.2.tgz#e6b0d5e52fadb3dd993c26887b9b75acd438cd05"
1345213452
integrity sha512-x+GzQ/BEiaJvmfxoDqr0iJOwla6VxMllbAmJXrJbn/l9GGG/G188S3r6fgoDoAIYiqXdYEZdqEuLFCGj5WBSmQ==

0 commit comments

Comments
 (0)