Skip to content

Commit

Permalink
Add CJS output of preview entry
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Mar 12, 2024
1 parent 971e1bb commit 87efa4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./preview": {
"types": "./dist/index.d.ts",
"import": "./dist/preview.js",
"require": "./dist/preview.js"
"require": "./dist/preview.cjs"
},
"./preset": "./dist/preset.cjs",
"./manager": "./dist/manager.js",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default defineConfig(async (options) => {
dts: {
resolve: true,
},
format: ["esm"],
format: ["esm", "cjs"],
target: BROWSER_TARGET,
platform: "browser",
external: globalPreviewPackages,
Expand Down

0 comments on commit 87efa4c

Please sign in to comment.