Skip to content

Commit

Permalink
chore: changes build parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Kumar Choudhary authored and Harsh Kumar Choudhary committed Mar 17, 2024
1 parent fd1630f commit 96c74e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineBuildConfig([
esbuild: {
minify: true,
},
emitCJS: false,
emitCJS: true,
},
failOnWarn: false,
},
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/min/index.cjs",
"default": "./dist/index.mjs"
},
"./min/index.mjs": "./dist/min/index.mjs",
"./min": {
"types": "./dist/index.d.ts",
"require": "./dist/min/index.cjs",
"default": "./dist/min/index.mjs"
},
"./idleQueue.js": {
"types": "./dist/idleQueue.d.ts",
"default": "./dist/idleQueue.mjs"
Expand Down
2 changes: 1 addition & 1 deletion src/idleQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class IdleQueue {

const minTaskTime: number = Math.max(
0,
options?.minTaskTime || this.defaultMinTaskTime_,
(options && options.minTaskTime) || this.defaultMinTaskTime_,
)

arrayMethod.call(this.taskQueue_, {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2019",
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"moduleResolution": "node",
Expand Down

0 comments on commit 96c74e0

Please sign in to comment.