Skip to content

Commit

Permalink
target es2022 with type module and use bundler moduleResolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Jun 16, 2024
1 parent 4713371 commit fe67e1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"module": "dist/index.js",
"browser": "dist/index.js",
"types": "types/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/Sysix/broadcast-single-worker.git"
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"compilerOptions": {
"module": "NodeNext",
"target": "ESNext",
"moduleResolution": "NodeNext",
"target": "ES2022",
"moduleResolution": "Bundler",
"strict": true,
"outDir": "dist",
"rootDir": "src",
Expand Down

0 comments on commit fe67e1e

Please sign in to comment.