Skip to content

Commit

Permalink
add-v4-compatibility (#695)
Browse files Browse the repository at this point in the history
* add-v4-compatibility

* fix typings

* fix ts

* Update actual peer dependency

* update date fns adapter

* Don't parse node modules
  • Loading branch information
LeeLenaleee authored Nov 23, 2022
1 parent f4079fd commit f6adccb
Show file tree
Hide file tree
Showing 7 changed files with 1,406 additions and 1,228 deletions.
9 changes: 9 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ module.exports = {
}],
],
chainWebpack: (config) => {
config.module
.rule('chart.js')
.include.add(path.resolve('node_modules/chart.js')).end()
.use('babel-loader')
.loader('babel-loader')
.options({
presets: ['@babel/preset-env']
})
.end();
config.merge({
resolve: {
alias: {
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = function(karma) {
{pattern: 'test/fixtures/**/*.js', included: false},
{pattern: 'test/fixtures/**/*.json', included: false},
{pattern: 'test/fixtures/**/*.png', included: false},
{pattern: 'node_modules/chart.js/dist/chart.js'},
{pattern: 'node_modules/chart.js/dist/chart.umd.js'},
{pattern: 'node_modules/hammer-simulator/index.js'},
{pattern: 'node_modules/hammerjs/hammer.js'},
{pattern: 'node_modules/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.js'},
Expand Down
Loading

0 comments on commit f6adccb

Please sign in to comment.