This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): Use microbundle to create ESM bundles
Signed-off-by: Tilman Vatteroth <[email protected]>
- Loading branch information
1 parent
6d45e25
commit 1fdea99
Showing
14 changed files
with
66 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
{ | ||
"transform": { | ||
".(ts|tsx)": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$", | ||
"testPathIgnorePatterns": [ | ||
"testRegex" : "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"testPathIgnorePatterns" : [ | ||
"/dist/" | ||
], | ||
"moduleFileExtensions": [ | ||
"moduleFileExtensions" : [ | ||
"ts", | ||
"tsx", | ||
"js" | ||
] | ||
], | ||
"extensionsToTreatAsEsm" : [ | ||
".ts" | ||
], | ||
"moduleNameMapper" : { | ||
"^(\\.{1,2}/.*)\\.js$" : "$1" | ||
}, | ||
"transform" : { | ||
"^.+\\.tsx?$" : [ | ||
"ts-jest", | ||
{ | ||
"useESM" : true | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2019", | ||
"target": "esnext", | ||
"removeComments": true, | ||
"preserveConstEnums": true, | ||
"lib": [ | ||
"es2019", | ||
"es2020", | ||
"dom" | ||
], | ||
"declaration": true, | ||
"strict": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "CommonJS", | ||
"moduleResolution": "node", | ||
"module": "esnext", | ||
"moduleResolution": "NodeNext", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"rootDir": "./src/", | ||
"outDir": "dist/", | ||
"rootDir": "./src", | ||
"allowJs": true, | ||
"jsx": "react-jsx" | ||
"sourceMap": true, | ||
"jsx": "react" | ||
}, | ||
"include": ["src"] | ||
} |