Add subpath imports (#1808)
This commit is contained in:
parent
047f74c67d
commit
691af26895
2 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@ module.exports = function (api) {
|
|||
{
|
||||
alias: {
|
||||
// This needs to be mirrored in tsconfig.json
|
||||
'#': './src',
|
||||
lib: './src/lib',
|
||||
platform: './src/platform',
|
||||
state: './src/state',
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"jsx": "react-jsx",
|
||||
"types": ["node"],
|
||||
"paths": {
|
||||
"#/*": ["./src/*"],
|
||||
"lib/*": ["./src/lib/*"],
|
||||
"platform/*": ["./src/platform/*"],
|
||||
"state/*": ["./src/state/*"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue