Skip to content

Commit

Permalink
Rollback mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Apr 4, 2024
1 parent a8f5fc6 commit ea33108
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.es.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"keywords": [
"cache",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"include": ["example", "src", "test"],
"compilerOptions": {
"module": "ESNext",
"target": "ES2017",
"lib": ["DOM", "DOM.Iterable", "ES2017"],
"target": "ES2019",
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"jsx": "react-jsx",
"moduleResolution": "Node",

Expand Down
5 changes: 2 additions & 3 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ import { Options, defineConfig } from "tsup";
const commonOptions: Partial<Options> = {
entry: { index: "src/index.ts" },
tsconfig: "./tsconfig.build.json",
target: "es2017",
treeshake: "safest",
target: "es2019",
sourcemap: true,
treeshake: true,
};

export default defineConfig([
{
...commonOptions,
clean: true,
format: "esm",
outExtension: () => ({ js: ".es.js" }),
},
{
...commonOptions,
Expand Down

0 comments on commit ea33108

Please sign in to comment.