Skip to content

Commit f6adccb

Browse files
authored
add-v4-compatibility (#695)
* add-v4-compatibility * fix typings * fix ts * Update actual peer dependency * update date fns adapter * Don't parse node modules
1 parent f4079fd commit f6adccb

7 files changed

Lines changed: 1406 additions & 1228 deletions

File tree

docs/.vuepress/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ module.exports = {
7474
}],
7575
],
7676
chainWebpack: (config) => {
77+
config.module
78+
.rule('chart.js')
79+
.include.add(path.resolve('node_modules/chart.js')).end()
80+
.use('babel-loader')
81+
.loader('babel-loader')
82+
.options({
83+
presets: ['@babel/preset-env']
84+
})
85+
.end();
7786
config.merge({
7887
resolve: {
7988
alias: {

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = function(karma) {
5959
{pattern: 'test/fixtures/**/*.js', included: false},
6060
{pattern: 'test/fixtures/**/*.json', included: false},
6161
{pattern: 'test/fixtures/**/*.png', included: false},
62-
{pattern: 'node_modules/chart.js/dist/chart.js'},
62+
{pattern: 'node_modules/chart.js/dist/chart.umd.js'},
6363
{pattern: 'node_modules/hammer-simulator/index.js'},
6464
{pattern: 'node_modules/hammerjs/hammer.js'},
6565
{pattern: 'node_modules/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.js'},

0 commit comments

Comments
 (0)