diff --git a/.eslintrc.json b/.eslintrc.json index dac79100b8..bf8565b62a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -641,7 +641,7 @@ "rxjs/**", "ng2-charts", "chart.js", - "plotly.js-dist", + "plotly.js-dist-min", "angular2-grid", "html-query-plan" ] diff --git a/package.json b/package.json index 95f403c9e3..f8d746bdd0 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "ng2-charts": "^1.6.0", "node-pty": "0.10.0-beta7", "onigasm-umd": "2.2.5", - "plotly.js-dist": "^1.48.3", + "plotly.js-dist-min": "^1.53.0", "reflect-metadata": "^0.1.8", "rxjs": "5.4.0", "sanitize-html": "^1.19.1", @@ -175,8 +175,8 @@ "rimraf": "^2.2.8", "sinon": "^1.17.2", "source-map": "^0.4.4", - "temp-write": "^3.4.0", "style-loader": "^1.0.0", + "temp-write": "^3.4.0", "ts-loader": "^4.4.2", "typemoq": "^0.3.2", "typescript": "^3.9.0-dev.20200327", diff --git a/src/sql/workbench/contrib/notebook/browser/outputs/plotlyOutput.component.ts b/src/sql/workbench/contrib/notebook/browser/outputs/plotlyOutput.component.ts index 09ae08d587..4263b28cb6 100644 --- a/src/sql/workbench/contrib/notebook/browser/outputs/plotlyOutput.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/outputs/plotlyOutput.component.ts @@ -42,7 +42,7 @@ declare class PlotlyHTMLElement extends HTMLDivElement { export class PlotlyOutputComponent extends AngularDisposable implements IMimeComponent, OnInit { public static readonly SELECTOR: string = 'plotly-output'; - private static Plotly?: Promise; + private static Plotly?: Promise; @ViewChild('output', { read: ElementRef }) private output: ElementRef; @@ -79,7 +79,7 @@ export class PlotlyOutputComponent extends AngularDisposable implements IMimeCom ngOnInit() { if (!PlotlyOutputComponent.Plotly) { - PlotlyOutputComponent.Plotly = import('plotly.js-dist'); + PlotlyOutputComponent.Plotly = import('plotly.js-dist-min'); } this._plotDiv = this.output.nativeElement; this.renderPlotly(); diff --git a/yarn.lock b/yarn.lock index b0b2c78076..d87288b54b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7186,10 +7186,10 @@ plist@^3.0.1: xmlbuilder "^9.0.7" xmldom "0.1.x" -plotly.js-dist@^1.48.3: - version "1.48.3" - resolved "https://registry.yarnpkg.com/plotly.js-dist/-/plotly.js-dist-1.48.3.tgz#b160b2d080ad87720121c9119f28036f35a301dc" - integrity sha512-Ocy2WWjzh4Ofk293AgTvP0ga053nTV7TvUbYEzmq1E9Eh7wc6HCPBxo55YcZThHw3hVycEnhktLQK94en1bYSw== +plotly.js-dist-min@^1.53.0: + version "1.53.0" + resolved "https://registry.yarnpkg.com/plotly.js-dist-min/-/plotly.js-dist-min-1.53.0.tgz#bcec2c0ce0c64ea8d7a261213540669a8cc166e9" + integrity sha512-tcNz8PmtUL9NfN7gGhMf5TuNt5x20dig+biFLvFH9uFT1kD2Erq5p058QNV2A+vLULTlESlJvVzR9hwpdPMUrw== plugin-error@0.1.2, plugin-error@^0.1.2: version "0.1.2"