Skip to content

Commit

Permalink
fix: use mjs instead of esm folder (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 authored Oct 6, 2022
1 parent a6f6a8e commit a0d416b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions esm/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "3.1.0",
"description": "A native \"Headers\" class polyfill.",
"main": "./lib/index.js",
"module": "./lib/esm/index.js",
"module": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js",
"default": "./lib/esm/index.js"
"default": "./lib/index.mjs"
}
},
"repository": "https://github.com/mswjs/headers-polyfill",
Expand Down
1 change: 0 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default defineConfig([
entry: ['./src/index.ts'],
outDir: './lib',
format: ['esm','cjs'],
legacyOutput: true,
sourcemap: true,
clean: true,
bundle: true,
Expand Down

0 comments on commit a0d416b

Please sign in to comment.