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

PHP.wasm Node: Revert a part of #1289, do not import a .wasm file #1348

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

adamziel
Copy link
Collaborator

#1289 shipped a PHP.wasm building logic that used an import statement instead of composing a path of __dirname. It did that to support Bun bundling, as Bun needs those static imports to include the .wasm files in the single executable. Unfortunately, that change broke npm bundling and publishing, resulting in a broken package that doesn't ship the correct paths and builds a broken index.cjs file.

#1289 shipped a
PHP.wasm building logic that used an import statement instead of
composing a path of __dirname. It did that to support Bun bundling, as
Bun needs those static imports to include the .wasm files in the single
executable. Unfortunately, that change broke npm bundling and
publishing, resulting in a broken package that doesn't ship the correct
paths and builds a broken index.cjs file.
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Package][@php-wasm] Node labels Apr 30, 2024
@adamziel adamziel merged commit 2f28635 into trunk Apr 30, 2024
1 check passed
@adamziel adamziel deleted the restore-php-wasm-node-cjsbuild branch April 30, 2024 12:41
@adamziel
Copy link
Collaborator Author

I'll go ahead and merge without waiting for checks and revert if it goes wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@php-wasm] Node [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant