Skip to content

Commit

Permalink
[fix]: update configuration for exporting package (#25)
Browse files Browse the repository at this point in the history
* fix: update configuration for exporting package

* feat: upgrade library to be browser-compatible
  • Loading branch information
alexmylonas authored Nov 22, 2024
1 parent 928a906 commit 2b4a7bc
Show file tree
Hide file tree
Showing 9 changed files with 342 additions and 286 deletions.
12 changes: 11 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,15 @@ module.exports = {
['lcov', { projectRoot: '../' }],
'text-summary',
],
transformIgnorePatterns: ["/node_modules/(?!key-did-resolver/)"]
transformIgnorePatterns: ["/node_modules/(?!key-did-resolver/)"],
transform: {
// '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'configs/tsconfig.esm.json',
},
],
},
};
Loading

0 comments on commit 2b4a7bc

Please sign in to comment.