Skip to content

bundle Prism in the ESM version to prevent Vite issues #42

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"homepage": "https://egoistian.com/vue-prism-component/",
"main": "dist/vue-prism-component.common.js",
"module": "dist/vue-prism-component.esm.js",
"cdn": "dist/vue-prism-component.min.js",
"unpkg": "dist/vue-prism-component.min.js",
"files": [
Expand All @@ -17,9 +18,10 @@
"test": "echo skip",
"lint": "xo",
"prepublishOnly": "npm run build",
"build": "npm run build:umd && npm run build:cjs",
"build": "npm run build:umd && npm run build:cjs && npm run build:esm",
"build:umd": "bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs --external vue",
"build:cjs": "bili --file-name \"vue-prism-component.common.js\" --format cjs"
"build:cjs": "bili --file-name \"vue-prism-component.common.js\" --format cjs",
"build:esm": "bili --file-name \"vue-prism-component.esm.js\" --format esm --bundle-node-modules"
},
"author": "egoist <0x142857@gmail.com>",
"license": "MIT",
Expand Down