Add subpath imports (#1808)
parent
047f74c67d
commit
691af26895
|
@ -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…
Reference in New Issue