From 21917b502d69db0140e9b0acb3bdd5b5ae5e4cfb Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Sat, 22 Jun 2024 18:20:53 +0700 Subject: [PATCH] another attempt to fix import aliases --- cypress/plugins/index.js | 2 +- cypress/tsconfig.cypress.json | 6 ++++++ sentry.edge.config.js | 2 ++ tsconfig.json | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 cypress/tsconfig.cypress.json create mode 100644 sentry.edge.config.js diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 519b009a0..984878015 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -26,7 +26,7 @@ module.exports = ( webpackOptions: { resolve: { alias: { - '@': path.resolve(__dirname, '../../'), + '@': path.resolve(__dirname, '../..'), }, }, }, diff --git a/cypress/tsconfig.cypress.json b/cypress/tsconfig.cypress.json new file mode 100644 index 000000000..8784db033 --- /dev/null +++ b/cypress/tsconfig.cypress.json @@ -0,0 +1,6 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "baseUrl": "../" + } +} diff --git a/sentry.edge.config.js b/sentry.edge.config.js new file mode 100644 index 000000000..55ad676c4 --- /dev/null +++ b/sentry.edge.config.js @@ -0,0 +1,2 @@ +// empty file kill warning log +// https://github.com/getsentry/sentry-javascript/issues/4206#issuecomment-2031839638 diff --git a/tsconfig.json b/tsconfig.json index 2653e8d38..c34c66539 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "baseUrl": "./", "target": "esnext", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true,