Skip to content

Fix perspective-workspace webpack compat#1784

Merged
texodus merged 1 commit intomasterfrom
fix-workspace-webpack
Apr 18, 2022
Merged

Fix perspective-workspace webpack compat#1784
texodus merged 1 commit intomasterfrom
fix-workspace-webpack

Conversation

@texodus
Copy link
Member

@texodus texodus commented Apr 18, 2022

Tree-shaking for neither esbuild nor webpack live up to the kb discount of importing the implementation source .ts files rather than the pre-compiled es6 dist/ versions, ~50kb of difference in perspective-workspace. However, webpack requires yet another custom loader for perspective-webpack-plugin to selectively compile the TypeScript. Rather than add this, this PR instead inlines the @lumino includes in @finos/perspective-workspce/dist/esm.

TL;DR @finos/perspective-workspce works and is 50kb smaller.

@texodus texodus added bug Concrete, reproducible bugs and removed cla-present labels Apr 18, 2022
@texodus texodus merged commit 2e91b3e into master Apr 18, 2022
@texodus texodus deleted the fix-workspace-webpack branch April 18, 2022 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

1 participant