Merge pull request #191 from optuna/plotly-dist-min

Use plotly.js-dist-min to reduce bundle.js.
This commit is contained in:
Masashi Shibata
2022-03-22 23:10:46 +09:00
committed by GitHub
11 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
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-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect } from "react"
import { Box, Grid, Typography, useTheme } from "@mui/material"
import { plotlyDarkTemplate } from "./PlotlyDarkMode"
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
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-dist-min"
// Following template is extracted from the sdist of plotly Python library.
// See https://github.com/plotly/plotly.py/blob/v5.6.0/packages/python/plotly/templategen/__init__.py and
+9 -9
View File
@@ -14,7 +14,7 @@
"@mui/material": "^5.4.4",
"axios": "^0.21.2",
"notistack": "^2.0.3",
"plotly.js-dist": "^2.10.0",
"plotly.js-dist-min": "^2.11.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
@@ -10128,10 +10128,10 @@
"node": ">=8"
}
},
"node_modules/plotly.js-dist": {
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/plotly.js-dist/-/plotly.js-dist-2.10.0.tgz",
"integrity": "sha512-OceBJSwf9q64JK6uHM8/R4KYRNmJ/2UmqTpyWVMXHWuN+aLp8dmF/BMOFi7Vvn1xP/Uj7r6Y/lTuMHnpM7qb0w=="
"node_modules/plotly.js-dist-min": {
"version": "2.11.1",
"resolved": "https://registry.npmjs.org/plotly.js-dist-min/-/plotly.js-dist-min-2.11.1.tgz",
"integrity": "sha512-F9WWNht0D3yBLZGHbLoJNfvplXvy+GUPSsA/lCbMuYd/UwzSu6Vmyprxlps9Einw1LDS1hYBrJeioK0lE3ieXA=="
},
"node_modules/prelude-ls": {
"version": "1.2.1",
@@ -19381,10 +19381,10 @@
"find-up": "^4.0.0"
}
},
"plotly.js-dist": {
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/plotly.js-dist/-/plotly.js-dist-2.10.0.tgz",
"integrity": "sha512-OceBJSwf9q64JK6uHM8/R4KYRNmJ/2UmqTpyWVMXHWuN+aLp8dmF/BMOFi7Vvn1xP/Uj7r6Y/lTuMHnpM7qb0w=="
"plotly.js-dist-min": {
"version": "2.11.1",
"resolved": "https://registry.npmjs.org/plotly.js-dist-min/-/plotly.js-dist-min-2.11.1.tgz",
"integrity": "sha512-F9WWNht0D3yBLZGHbLoJNfvplXvy+GUPSsA/lCbMuYd/UwzSu6Vmyprxlps9Einw1LDS1hYBrJeioK0lE3ieXA=="
},
"prelude-ls": {
"version": "1.2.1",
+1 -1
View File
@@ -21,7 +21,7 @@
"@mui/material": "^5.4.4",
"axios": "^0.21.2",
"notistack": "^2.0.3",
"plotly.js-dist": "^2.10.0",
"plotly.js-dist-min": "^2.11.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"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-dist-min": ["node_modules/@types/plotly.js"]
},
"noImplicitAny": true,
"lib": ["dom", "esnext"],