Skip to content

Commit

Permalink
release: makes changes in target version
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Kumar Choudhary authored and Harsh Kumar Choudhary committed Mar 15, 2024
1 parent 3254b53 commit c21c436
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# idlefy

### Defer non-critical tasks to run when the main thread is idle
### Defer non-critical tasks to execute when the main thread is idle

The `idlefy` library is a collection of JavaScript tools designed to help you improve website performance by strategically scheduling tasks to run during the browser's idle periods. This adheres to the [*idle-until-urgent*](https://philipwalton.com/articles/idle-until-urgent/) pattern.

Expand Down
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: true,
emitCJS: false,
},
failOnWarn: false,
},
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/min/index.cjs",
"default": "./dist/index.mjs"
},
"./min": {
"default": "./dist/min/index.mjs"
},
"./min/index.mjs": "./dist/min/index.mjs",
"./idleQueue.js": {
"types": "./dist/idleQueue.d.ts",
"default": "./dist/idleQueue.mjs"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "ES2019",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"moduleResolution": "Bundler",
"moduleResolution": "node",
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
Expand Down

0 comments on commit c21c436

Please sign in to comment.