Skip to content

Commit eff3997

Browse files
authored
Release 1.1.0-alpha.3
* Fix ESM build
1 parent 2f8c17d commit eff3997

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "chartjs-adapter-date-fns",
33
"homepage": "https://www.chartjs.org",
44
"description": "Chart.js adapter to use date-fns for time functionalities",
5-
"version": "1.1.0-alpha.2",
5+
"version": "1.1.0-alpha.3",
66
"license": "MIT",
77
"main": "dist/chartjs-adapter-date-fns.js",
88
"module": "dist/chartjs-adapter-date-fns.esm.js",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Chart } from 'chart.js';
1+
import { _adapters } from 'chart.js';
22
import {
33
parse, parseISO, toDate, isValid, format,
44
startOfSecond, startOfMinute, startOfHour, startOfDay,
@@ -25,7 +25,7 @@ const FORMATS = {
2525
year: 'yyyy'
2626
};
2727

28-
Chart._adapters._date.override({
28+
_adapters._date.override({
2929
_id: 'date-fns', // DEBUG
3030

3131
formats: function() {

0 commit comments

Comments
 (0)