-
-
Notifications
You must be signed in to change notification settings - Fork 143
Async support - Lazy dcc.Graph and lazy plotlyjs #616
Changes from 114 commits
074b92f
a5f38d7
81e09ec
7305354
55dada3
8a94e68
9d1bdef
7601fd3
6a48e87
c68ed52
6b7f743
8584554
72bfdb4
521f0dd
68e87bb
0f0ddd2
5246acd
00278cd
3b18a7c
d54ae5d
4a6020b
8332725
b2f9b58
fa04e80
8547864
822af5f
c26f13f
c928498
1029922
7bfe0cc
1ec813c
3ae5667
d56e89b
937f800
b0aa387
e9fc33c
4662895
c8683a6
3ecf58e
bf4c122
92418ee
3a430ff
1825e11
ee2280a
fa28aff
93e3fdd
e396489
bcc6c3f
fe1c5e3
689de7a
ca8e38a
d2e9a7f
4e2fc30
1265c0e
0f3938c
4e28afc
1cb1ce9
9c2918b
31a30fe
80a606f
7cc5a72
d5c04fe
7b447e5
14aa662
81c43fd
6779435
55b11b9
551d78e
c6951d8
cefe498
59f60bc
678ab09
9a62872
bbca47f
b657a1c
791d5b3
8d43698
c05ce6c
e2de81f
a5f47d3
6e995f9
a8c8cb2
e210049
6834126
3d2846a
0009736
8283bb5
e201a93
66324d0
0101cb7
2a3dece
0d1ce86
046d6ac
f251ce0
85d8446
9f8698c
7776f5c
bc5e2e5
1044563
efe1e76
bc84f05
dc2c14d
beeae2f
3b34d40
17c6c60
6dc2061
9488ac6
9a3f5ba
b800485
5d26e15
d2a8f68
4a6615d
ddd91d5
8f574d5
5acdfc1
5f71ea8
3fc4584
6519349
10cf3ca
3989450
00b3f77
ba4a451
24ae964
6c00ed2
eb00081
194b4f6
644bb64
b9595a1
c029a58
078bc87
f3e1119
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const presets = [ | ||
['@babel/env', { | ||
useBuiltIns: 'usage', | ||
corejs: 3 | ||
}], | ||
'@babel/preset-react' | ||
]; | ||
|
||
const plugins = [ | ||
'@babel/plugin-syntax-dynamic-import' | ||
]; | ||
|
||
// eslint-disable-next-line no-process-env | ||
if (process.env.ENV === "test") { | ||
plugins.push("styled-jsx/babel-test"); | ||
} else { | ||
plugins.push("styled-jsx/babel"); | ||
} | ||
|
||
module.exports = { presets, plugins }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const fs = require('fs'); | ||
|
||
const package = JSON.parse(fs.readFileSync('package.json')); | ||
|
||
const plotlyJsVersion = (package.dependencies && package.dependencies['plotly.js']) || | ||
(package.devDependencies && package.devDependencies['plotly.js']); | ||
|
||
fs.copyFile('node_modules/plotly.js/dist/plotly.min.js', `dash_core_components/plotly-${plotlyJsVersion}.min.js`, err => { | ||
if (err) { | ||
throw err; | ||
} | ||
|
||
console.log('copied plotly.js', plotlyJsVersion); | ||
}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy plotly.min.js as part of the build's generator step. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remember to update https://github.com/plotly/dash-core-components/blob/dev/CONTRIBUTING.md#updating-plotlyjs - it's already out of date but will be waaaaay simpler after this change 😍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updating. It's not really all that much simpler though, as it's only updating one step in the whole generation process. 6c00ed2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah true... though partly that's because the previous version was missing a step - clearing out the old plotly.js version manually - that was a source of errors in the past. Further simplification will come when we auto-generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unreleased