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

Convert CJS to ESM #10

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Convert CJS to ESM #10

merged 1 commit into from
Jun 3, 2024

Conversation

Daniel-Knights
Copy link
Contributor

As part of moving the project update tool to a separate NPM package, this extension needs to be written in ESM because we want the product update package to use ESM. VSCode extensions can't be ESM at runtime because VSCode uses an old version of Electron that doesn't support it (see this issue).

This PR adds a build step using ESBuild to transpile ESM to CJS.

VSCode docs on bundling: https://code.visualstudio.com/api/working-with-extensions/bundling-extension

Copy link
Contributor

@luiscamachopt luiscamachopt left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

Copy link
Contributor

@o-sims o-sims left a comment

Choose a reason for hiding this comment

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

Nice job

@luiscamachopt luiscamachopt merged commit dd7aa14 into main Jun 3, 2024
3 checks passed
@luiscamachopt luiscamachopt deleted the enh/convert_to_esm branch June 3, 2024 14:54
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.

None yet

3 participants