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

feat: support CJS output for wasm build #162

Merged
merged 3 commits into from Jan 15, 2024
Merged

feat: support CJS output for wasm build #162

merged 3 commits into from Jan 15, 2024

Conversation

kirjavascript
Copy link
Contributor

@kirjavascript kirjavascript commented Dec 7, 2023

  • Brings WASM builds feature parity with exports from native builds
  • Adds esbuild to convert to CJS (similar to other parcel repos)

package.json Outdated
@@ -46,6 +46,7 @@
},
"dependencies": {
"detect-libc": "^1.0.3",
"esbuild": "^0.19.8",
Copy link
Member

Choose a reason for hiding this comment

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

should be in devDependencies

bundle: true,
format: 'cjs',
platform: 'node',
outdir: `${dir}/npm/wasm`,
Copy link
Member

Choose a reason for hiding this comment

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

should also externalize node_modules

@devongovett devongovett merged commit 21eea6f into parcel-bundler:master Jan 15, 2024
8 checks passed
@devongovett
Copy link
Member

Thanks! And sorry about the delay.

@kirjavascript
Copy link
Contributor Author

thanks!!

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

2 participants