Skip to content

Commit

Permalink
fix: fix #286 bundled moment not found
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jan 3, 2023
1 parent d5b4591 commit fa4b8be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const globals = {
'd3-fetch': 'd3',
'd3-selection': 'd3',
'd3-transition': 'd3',
moment: 'moment',
};

const exportConfig = (input, name, output, options = {}) => {
Expand Down Expand Up @@ -126,7 +125,6 @@ export default [
'd3-scale',
'd3-selection',
'd3-transition',
'moment',
],
}),
...exportConfig('src/plugins/Tooltip.ts', 'Tooltip', 'plugins/Tooltip', {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/DateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class DateHelper {

setup(options: Options) {
this.locale = options.options.date.locale || this.locale;
this.setMoment(moment);
this.setMoment(window.moment || moment);
}

setMoment(customMoment: any) {
Expand Down

0 comments on commit fa4b8be

Please sign in to comment.