From 691af26895bcc2077c062bc5dd3f3ad3381fa51a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 3 Nov 2023 16:17:40 -0500 Subject: [PATCH] Add subpath imports (#1808) --- babel.config.js | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/babel.config.js b/babel.config.js index 78edf57499..924120495f 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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', diff --git a/tsconfig.json b/tsconfig.json index 4cae9d24f4..24c347c734 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "jsx": "react-jsx", "types": ["node"], "paths": { + "#/*": ["./src/*"], "lib/*": ["./src/lib/*"], "platform/*": ["./src/platform/*"], "state/*": ["./src/state/*"],