Skip to content

Commit 324abe8

Browse files
committed
fix: umd.min.js globals.hljs
1 parent 8a2334b commit 324abe8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build/rollup.config.prod.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ const esOutputPath = path.resolve(__dirname, '../dist/vue3-highlight-es.min.js')
1010
export default {
1111
input: inputPath,
1212
output: [
13-
{ file: umdOutputPath, format: 'umd', name: 'Vue3Highlightjs' },
13+
{
14+
file: umdOutputPath,
15+
format: 'umd',
16+
name: 'Vue3Highlightjs',
17+
globals: {
18+
hljs: 'hljs',
19+
},
20+
},
1421
{ file: cjsOutputPath, format: 'cjs' },
1522
{ file: esOutputPath, format: 'es' },
1623
],

0 commit comments

Comments
 (0)