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 ignore_dce_annotations for runtime transpiled files. #12333

Open
paperdave opened this issue Jul 4, 2024 · 0 comments
Open

Use ignore_dce_annotations for runtime transpiled files. #12333

paperdave opened this issue Jul 4, 2024 · 0 comments
Labels
enhancement New feature or request transpiler parser || printer

Comments

@paperdave
Copy link
Collaborator

Bun processes dce annotations, which makes sense for a bundler, but less at a runtime. If a DCE annotation lies, it causes behavioral differences.

function isBun() {
  try {
    /* @__PURE__ */ null(null);
    return true;
  } catch {
    return false;
  }
}

console.log(isBun());
@paperdave paperdave added enhancement New feature or request transpiler parser || printer labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request transpiler parser || printer
Projects
None yet
Development

No branches or pull requests

1 participant