about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-03 16:17:40 -0500
committerGitHub <noreply@github.com>2023-11-03 14:17:40 -0700
commit691af26895bcc2077c062bc5dd3f3ad3381fa51a (patch)
treede400f3cb755f25380740c4842145d3eee04335d
parent047f74c67de72c74ae5973612b566b2330dcd4a4 (diff)
downloadvoidsky-691af26895bcc2077c062bc5dd3f3ad3381fa51a.tar.zst
Add subpath imports (#1808)
-rw-r--r--babel.config.js1
-rw-r--r--tsconfig.json1
2 files changed, 2 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js
index 78edf5749..924120495 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 4cae9d24f..24c347c73 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/*"],