Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate unnecessary dupe files and map files in VSIX #4665

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Feb 5, 2021

For #4551

Map files aren't needed in the vsix.

Additionally the 'forceLoad' function for test code was forcing the transforms.tsx file to get pulled in which brings in a whole host of other imports. This is only necessary for the webview editors.

@rchiodo rchiodo requested a review from a team as a code owner February 5, 2021 00:13
@@ -27,7 +27,6 @@ import { PostOffice } from '../../react-common/postOffice';
import { combineReducers, createQueueableActionMiddleware, QueuableAction } from '../../react-common/reduxUtils';
import { computeEditorOptions, getDefaultSettings } from '../../react-common/settingsReactSide';
import { createEditableCellVM, generateTestState } from '../mainState';
import { forceLoad } from '../transforms';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THis one import was pulling in 20MB of stuff into the dataviewer/plotviewer/variableviewer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20MB unzipped that is.

@rchiodo rchiodo merged commit d2064c6 into main Feb 5, 2021
@rchiodo rchiodo deleted the rchiodo/vsix_size branch February 5, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants