Skip to content

Commit 54ec45f

Browse files
committed
fix(build): fix import of chart.js
1 parent b81b499 commit 54ec45f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import typescript from "rollup-plugin-typescript2";
33
import commonjs from "@rollup/plugin-commonjs";
44
import json from "@rollup/plugin-json";
55
import terser from "@rollup/plugin-terser";
6-
import pkg from "./package.json" assert { type: "json" };
6+
import pkg from "./package.json" with { type: "json" };
77

88
const external = ["assert"];
99

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import Chart from 'chart.js';
2+
import Chart from 'chart.js/auto';
33
import { ChartDatasourcePrometheusPlugin } from './plugin';
44

55
export default new ChartDatasourcePrometheusPlugin();

0 commit comments

Comments
 (0)