Skip to content

Update webpack for browser to polyfill process.#19033

Merged
karthiknadig merged 4 commits intomicrosoft:mainfrom
karthiknadig:browser
Apr 29, 2022
Merged

Update webpack for browser to polyfill process.#19033
karthiknadig merged 4 commits intomicrosoft:mainfrom
karthiknadig:browser

Conversation

@karthiknadig
Copy link
Copy Markdown
Member

No description provided.

@karthiknadig karthiknadig added no-changelog No news entry required skip tests Updates to tests unnecessary labels Apr 28, 2022
@karthiknadig karthiknadig requested a review from kimadeline April 28, 2022 17:20
@ghost
Copy link
Copy Markdown

ghost commented Apr 28, 2022

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ karthiknadig sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +46 to +48
// Attempt to load from the vscode locale. If not there, use english
const vscodeConfigString = process.env.VSCODE_NLS_CONFIG;
return vscodeConfigString ? JSON.parse(vscodeConfigString).locale : 'en-us';
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@kimadeline I am reverting this to how it was before I made the try--catch to capture the ReferenceError on vscode.dev

Comment thread package.json
"nock": "^10.0.6",
"node-has-native-dependencies": "^1.0.2",
"node-loader": "^1.0.2",
"node-polyfill-webpack-plugin": "^1.1.4",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@kimadeline Thanks for the tip on this. This was the solution for the ReferenceError problem.

@karthiknadig karthiknadig merged commit c1ae541 into microsoft:main Apr 29, 2022
@karthiknadig karthiknadig deleted the browser branch June 8, 2022 20:23
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…hon#19033)

* Update webpack for browser to polyfill process.

* Use node polyfill webpack plugin

* Revert webpack config changes

* Revert "Handle `process` usage in browser scenario. (microsoft/vscode-python#19029)"

This reverts commit e786d6286942dc519c17aea8f1e43f003e6e00b4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants