Merge pull request #40 from optuna/use-plotly-basic-dist

Slimming down bundle.js by using plotly.js-basic-dist
This commit is contained in:
Masashi SHIBATA
2021-02-23 18:37:45 +09:00
committed by GitHub
6 changed files with 9 additions and 9 deletions
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-basic-dist"
import React, { ChangeEvent, FC, useEffect, useState } from "react"
import {
Grid,
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-basic-dist"
import React, { FC, useEffect } from "react"
const plotDomId = "graph-intermediate-values"
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-basic-dist"
import React, { FC, useEffect } from "react"
const plotDomId = "graph-parallel-coordinate"
+4 -4
View File
@@ -2246,10 +2246,10 @@
"find-up": "^4.0.0"
}
},
"plotly.js-dist": {
"version": "1.57.1",
"resolved": "https://registry.npmjs.org/plotly.js-dist/-/plotly.js-dist-1.57.1.tgz",
"integrity": "sha512-tOOFxNc6PvdDkOUgWCSYc+CcxQULTpaGTROxrtmmF8NuZghcT3EInsToEzhPH3PcGM6bu61fKo73ZiFqxwYtlg=="
"plotly.js-basic-dist": {
"version": "1.58.4",
"resolved": "https://registry.npmjs.org/plotly.js-basic-dist/-/plotly.js-basic-dist-1.58.4.tgz",
"integrity": "sha512-WaxrfR06KGeR73PEEcbQIws4E2TZeI5LFWrqNN3COrT12+y6WI7IONgz0iFSvZouRL/8VQvvzWjJHf5MJ/MwfQ=="
},
"popper.js": {
"version": "1.16.1-lts",
+1 -1
View File
@@ -19,7 +19,7 @@
"@material-ui/icons": "^4.9.1",
"axios": "^0.21.1",
"notistack": "^1.0.1",
"plotly.js-dist": "^1.57.0",
"plotly.js-basic-dist": "^1.58.4",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-router-dom": "^5.2.0",
+1 -1
View File
@@ -8,7 +8,7 @@
"alwaysStrict": true,
"outDir": "./optuna_dashboard/public/",
"paths": {
"plotly.js-dist": ["node_modules/@types/plotly.js"]
"plotly.js-basic-dist": ["node_modules/@types/plotly.js"]
},
"noImplicitAny": true,
"lib": ["dom", "esnext"],