-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add async loading to reduce package size (#29)
* Change import path * npm run build * Add babel's plugin-syntax-dynamic-import Enables the use of the import function inside react for React.lazy * Add LazyComponents module This exports lazy components which are imported in the respective component scripts. This is needed in order for dash to detect the component and add it to _imports_.py * Update View.react.js to use async component * npm run build * npm run build * npm i && npm run build * install @plotly/webpack-dash-dynamic-import * npm i terser-webpack-plugin --save-dev * Add rules and optimization to webpack.config.js * change terser-webpack-plugin to v2.x * npm run build * Upgrade react-vtk-js to 1.2.2 * npm run build * Remove use of Suspense in View.react.js * npm run build * npm run build * install dash-components-plugins * npm run build * Try to use suspense/lazy (#40) * tried stuff * ok let's go back to where it was before * tried some more stuff that seems to make it work? * set async to true * Add usage simple, simplify import structure * Generalized the async component with a async component builder function Temporarily commenting out the other components that were causing problem * Expand async to more components; usage.py now runs but still white square * Improve naming for clarity * Replace all with async react vtk * Add more components to async-react-vtk, make builder more verbose * Wrap Mesh with lazy/suspense * npm run build * Fix incorrect source map * Add tests for docs tutorials * Move the async import call inside the builder function * npm run build * Tests: Increase sleep time for demo, decrease for tutorials * fix typo in usage-vtk-cfd * update react-vtk-js to 1.4.1 * update generated files * trigger circleci * update react-vtk-js to 1.4.2 * update generated files * trigger ci * Apply black to all tests and usage files * Remove dummy app * Update code to be eslint compliant * run build Co-authored-by: Sebastien Jourdain <[email protected]> * Add async files to manifest.in * update react-vtk-js to 1.4.3 * Upgrade react-vtk-js to 1.5.0 * Remove 🔪 unused module and cache group * npm run build Co-authored-by: Sebastien Jourdain <[email protected]> Co-authored-by: Joseph Damiba <[email protected]>
- Loading branch information
1 parent
b29d047
commit efc6a09
Showing
117 changed files
with
1,843 additions
and
1,248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -278,3 +278,4 @@ GitHub.sublime-settings | |
dash_vtk/output.js | ||
*deps/output.js | ||
.vscode/settings.json | ||
.build_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.