Skip to content

Commit 9e19df8

Browse files
authored
fix: provide an esm build (#10)
1 parent 7229c4c commit 9e19df8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"types": "./dist/remark-nomnoml.d.ts",
5353
"exports": {
5454
".": {
55-
"import": "./dist/remark-nomnoml.js",
55+
"import": "./dist/remark-nomnoml.mjs",
5656
"require": "./dist/remark-nomnoml.js",
5757
"types": "./dist/remark-nomnoml.d.ts"
5858
}

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default defineConfig((options) => {
55
name: 'remark-nomnoml',
66

77
shims: true,
8+
format: ['cjs', 'esm'],
89

910
entry: ['src/remark-nomnoml.ts'],
1011

0 commit comments

Comments
 (0)