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

node: prefix stripped unexpected under multiple --target options #3821

Closed
imcotton opened this issue Jul 2, 2024 · 0 comments
Closed

node: prefix stripped unexpected under multiple --target options #3821

imcotton opened this issue Jul 2, 2024 · 0 comments

Comments

@imcotton
Copy link

imcotton commented Jul 2, 2024

With this input:

import fs from 'node:fs';

fs.open

output by --bundle --format=esm --platform=node --target=node18

import fs from "node:fs";
fs.open;

output by --bundle --format=esm --platform=node --target=node18,es2022

import fs from "fs";
fs.open;

playground link

@evanw evanw closed this as completed in e3f4e2d Jul 3, 2024
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

No branches or pull requests

1 participant