💎 Release new version 2.6.0
🔥 Breaking Change
- Update release build to not include externals. #84
Release builds
If you're using the browser version directly from unkpg there is no action required
If you're using Webpack 1 / Webpack 2 / Browserify you will need to install Chart.js
yarn add chart.js
Both Vue.js
and Chart.js
are now peerDependencies
and excluded from the bundled files. This way if Vue.js or Chart.js updates you can use the latest version without updating or waiting for an update of vue-chartjs
.
Explanation of Different Builds
There are three different entry points. It depends on which build setup do you have. The dependencies are bundled or required as a peerDependency.
- Browser
- Browserify / Webpack 1
- Webpack 2
Build | Chart.js | Vue.js |
---|---|---|
vue-chartjs.full.js | Bundled | Bundled |
vue-chartjs.full.min.js | Bundled | Bundled |
vue-chartjs.js | peerDependency | peerDependency |
vue-chartjs.min.js | peerDependency | peerDependency |
es/index* | peerDependency | peerDependency |
Browser
You can use vue-chartjs
directly in the browser without any build setup. Like in this codepen. For this case, please use the vue-chartjs.full.min.js
which is the minified version. It has Vue.js and Chart.js bundled into it. And bundled to a UMD Module. So you only need that one file.
Browserify / Webpack 1
If you're using Gulp, Browserify or Webpack 1 the entry is vue-chartjs.js
which is transpiled and bundled UMD Module.
However Vue.js and Chart.js are deerDependencies
so you have to install them seperately. In most projects you will have Vue.js
already installed anyways. This way, you can have different versions of Vue.js and Chart.js then in this package.
Webpack 2
If you're using Webpack 2 it will automatically use the jsnext:main
/ module
entry point. Which is es/index.js
It is a transpiled es version of the source. And is not bundled to a module. This way you three shaking will work. Like in the bundled version, Vue.js
and Chart.js
are peerDependencies
and need to be installed.