Releases: gluons/vue-highlight.js
Releases · gluons/vue-highlight.js
v4.0.1-beta
Bug Fixes
- Fix Vue language not work when import individually.
v4.0.0-beta
New Features
- Support Highlight.js v10.
- Add new Vue language definition.
Breaking Changes
- Drop support for Highlight.js < v9.
Internal Changes
- Change linter from TSLint to ESLint.
v3.1.0
v3.0.1
v3.0.0
Breaking Changes
-
Vue Highlight.js now will not import all languages from Highlight.js. (#12)
You have to import languages that you want by yourself and pass it to plugin options.For
vue
language, you can import fromvue-highlight.js/lib/languages/vue
.It'll significantly reduce your app bundle size.
import Vue from 'vue'; import VueHighlightJS from 'vue-highlight.js'; // Highlight.js languages import javascript from 'highlight.js/lib/languages/javascript'; import vue from 'vue-highlight.js/lib/languages/vue'; // Vue language Vue.use(VueHighlightJS, { // Register only languages that you want languages: { javascript, vue } });
Internal Changes
- Convert code to TypeScript.
- Use vue-up to bundle library instead of plain webpack.