Skip to content

Commit

Permalink
feat: Declare prismjs as UMD dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored Apr 12, 2020
1 parent bfac9ca commit 37e8bd2
Show file tree
Hide file tree
Showing 3 changed files with 2,197 additions and 4,265 deletions.
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
"lint": "xo",
"prepublish": "npm run build",
"build": "npm run build:umd && npm run build:cjs",
"build:umd": "bili --format umd,umdCompress --env.NODE_ENV production --module-name PrismComponent",
"build:cjs": "bili --format cjs"
"build:umd": "bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs",
"build:cjs": "bili --file-name \"vue-prism-component.common.js\" --format cjs"
},
"author": "egoist <0x142857@gmail.com>",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"bili": "^0.17.3",
"bili": "^4.9.0",
"eslint-config-rem": "^3.0.0",
"poi": "^9.1.2",
"prismjs": "^1.6.0",
"xo": "^0.18.0"
},
Expand All @@ -36,15 +35,8 @@
"ignores": [
"example/**"
],
"globals": [
"Prism"
],
"rules": {
"import/prefer-default-export": 0
}
},
"poi": {
"entry": "example/index.js",
"dist": "example/dist"
}
}
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Prism from 'prismjs'
import { assign } from './utils'

export default {
Expand Down
Loading

0 comments on commit 37e8bd2

Please sign in to comment.