Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add allowImportingTsExtensions to tsconfig
Browse files Browse the repository at this point in the history
Copy babel config of the js-sdk config
  • Loading branch information
florianduros committed Aug 30, 2024
1 parent d16ab09 commit d8baf8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ module.exports = {
include: ["@babel/plugin-transform-class-properties"],
},
],
["@babel/preset-typescript", { allowDeclareFields: true }],
[
"@babel/preset-typescript",
{ allowDeclareFields: true, rewriteImportExtensions: process.env.NODE_ENV !== "test" },
],
"@babel/preset-react",
],
plugins: [
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"resolveJsonModule": true,
Expand Down

0 comments on commit d8baf8a

Please sign in to comment.