Add subpath imports (#1808)
parent
047f74c67d
commit
691af26895
|
@ -37,6 +37,7 @@ module.exports = function (api) {
|
||||||
{
|
{
|
||||||
alias: {
|
alias: {
|
||||||
// This needs to be mirrored in tsconfig.json
|
// This needs to be mirrored in tsconfig.json
|
||||||
|
'#': './src',
|
||||||
lib: './src/lib',
|
lib: './src/lib',
|
||||||
platform: './src/platform',
|
platform: './src/platform',
|
||||||
state: './src/state',
|
state: './src/state',
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"#/*": ["./src/*"],
|
||||||
"lib/*": ["./src/lib/*"],
|
"lib/*": ["./src/lib/*"],
|
||||||
"platform/*": ["./src/platform/*"],
|
"platform/*": ["./src/platform/*"],
|
||||||
"state/*": ["./src/state/*"],
|
"state/*": ["./src/state/*"],
|
||||||
|
|
Loading…
Reference in New Issue