Skip to content

Commit

Permalink
reduce babel (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Rodionova authored and uve committed Jan 15, 2020
1 parent 0ce1bd1 commit fbd1ddd
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 20 deletions.
68 changes: 50 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -64,7 +64,7 @@
"webpack": "4.23.1"
},
"dependencies": {
"@babel/polyfill": "^7.0.0",
"core-js": "^3.1.4",
"d3": "^5.4.0",
"jquery": "3.3.1",
"lodash": "4.17.11",
Expand Down
5 changes: 4 additions & 1 deletion src/visual.ts
Expand Up @@ -26,7 +26,6 @@
import powerbi from "powerbi-visuals-api";
import * as d3 from "d3";
import * as _ from "lodash";
import "@babel/polyfill";

import "../style/pulseChart.less";

Expand Down Expand Up @@ -731,6 +730,10 @@ export class PulseChart implements IVisual {
}

constructor(options: VisualConstructorOptions) {
if (window.location !== window.parent.location) {
require("core-js/stable");
}

this.margin = PulseChart.DefaultMargin;
this.host = options.host;
this.interactivityService = createInteractivityService(this.host);
Expand Down

0 comments on commit fbd1ddd

Please sign in to comment.