Skip to content

Commit 37e8bd2

Browse files
feat: Declare prismjs as UMD dependency
1 parent bfac9ca commit 37e8bd2

File tree

3 files changed

+2197
-4265
lines changed

3 files changed

+2197
-4265
lines changed

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@
1818
"lint": "xo",
1919
"prepublish": "npm run build",
2020
"build": "npm run build:umd && npm run build:cjs",
21-
"build:umd": "bili --format umd,umdCompress --env.NODE_ENV production --module-name PrismComponent",
22-
"build:cjs": "bili --format cjs"
21+
"build:umd": "bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs",
22+
"build:cjs": "bili --file-name \"vue-prism-component.common.js\" --format cjs"
2323
},
2424
"author": "egoist <0x142857@gmail.com>",
2525
"license": "MIT",
2626
"dependencies": {},
2727
"devDependencies": {
28-
"bili": "^0.17.3",
28+
"bili": "^4.9.0",
2929
"eslint-config-rem": "^3.0.0",
30-
"poi": "^9.1.2",
3130
"prismjs": "^1.6.0",
3231
"xo": "^0.18.0"
3332
},
@@ -36,15 +35,8 @@
3635
"ignores": [
3736
"example/**"
3837
],
39-
"globals": [
40-
"Prism"
41-
],
4238
"rules": {
4339
"import/prefer-default-export": 0
4440
}
45-
},
46-
"poi": {
47-
"entry": "example/index.js",
48-
"dist": "example/dist"
4941
}
5042
}

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Prism from 'prismjs'
12
import { assign } from './utils'
23

34
export default {

0 commit comments

Comments
 (0)