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

Bundle fails when js deps include node modules #150

Open
Lunarequest opened this issue Nov 23, 2023 · 0 comments
Open

Bundle fails when js deps include node modules #150

Lunarequest opened this issue Nov 23, 2023 · 0 comments

Comments

@Lunarequest
Copy link

I am trying to bundle easymde, which depends on typo-js. typo-js when imported on nodejs it checks if require is defined and has a line var fs = require("fs");. This results in deno_emit refusing to bundle easymde. From what I have seen when using something like esbuild it treeshakes this out when targeting web, and ignores this issue. Would it be possible to force deno_emit to ignore this line?

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