Skip to content

Commit

Permalink
Use conditional exports (used by Vite/esbuild)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Apr 10, 2023
1 parent 752533b commit ef422ba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"name": "@asciidoctor/core",
"version": "3.0.0-rc.1",
"description": "Asciidoctor - the core library",
"type": "module",
"main": "dist/node/asciidoctor.js",
"exports": {
".": {
"require": "./dist/node/asciidoctor.cjs",
"import": "./dist/node/asciidoctor.js"
}
},
"browser": "dist/browser/asciidoctor.js",
"module": "dist/browser/asciidoctor.js",
"type": "module",
"exports": {
"node": {
"import": "./dist/node/asciidoctor.js",
"require": "./src/node/asciidoctor.cjs"

This comment has been minimized.

Copy link
@benjaminleonard

benjaminleonard Apr 19, 2023

Contributor

Should this be: "require": "./dist/node/asciidoctor.cjs"?

This comment has been minimized.

Copy link
@ggrossetie

ggrossetie Apr 19, 2023

Author Member

yes... 😓

},
"default": "./dist/browser/asciidoctor.js"
},
"types": "types",
"engines": {
"node": ">=16",
Expand Down

0 comments on commit ef422ba

Please sign in to comment.