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

use shared webpack config for browser #101066

Merged
merged 2 commits into from Jun 26, 2020

Conversation

aeschli
Copy link
Contributor

@aeschli aeschli commented Jun 25, 2020

Use the shared webpack config for browser

@aeschli aeschli added this to the June 2020 milestone Jun 25, 2020
@aeschli aeschli requested a review from eamodio June 25, 2020 21:30
@aeschli aeschli self-assigned this Jun 25, 2020
Copy link
Contributor

@eamodio eamodio left a comment

Choose a reason for hiding this comment

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

Other than that looks good!

});
config.plugins.push(new webpack.DefinePlugin({ WEBWORKER: JSON.stringify(true) }))
Copy link
Contributor

Choose a reason for hiding this comment

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

@aeschli I think we should move this into the shared file -- so that if others need to have conditional code for node vs webworkers it is standardized.

@aeschli
Copy link
Contributor Author

aeschli commented Jun 26, 2020

I'll move it to the shared config, but we also want to add API to vscode.d.ts for extensions to detect that they are running on a browser extension host.

@aeschli aeschli merged commit a2a26b3 into master Jun 26, 2020
@aeschli aeschli deleted the aeschli/use-shared-webpack-browser-config branch June 26, 2020 12:01
@eamodio
Copy link
Contributor

eamodio commented Jun 26, 2020

Yeah that makes sense for runtime checks, the WEBWORKER var is for conditional webpack bundling checks.

@aeschli
Copy link
Contributor Author

aeschli commented Jun 29, 2020

oh, cool, didn't know that

@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants