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

What is the Preprocessor expected output format? Doesn't accept import (es) or require (cjs). Need better documentation. #30414

Closed
bvandercar-vt opened this issue Oct 16, 2024 · 1 comment

Comments

@bvandercar-vt
Copy link

bvandercar-vt commented Oct 16, 2024

What would you like?

Would like better documentation on the expected output file format of a preprocessor.

If I output as es, I get error Cannot use import statement outside a module

If I output as cjs, I get error require is not defined

Must each output file include all code to be ran, no importing of other files? Why is this? This seems like something that should be fixed. At the minimum, documentation should be improved.

Why is this needed?

Would expect an ES output to work, but it doesn't.

Other

No response

@bvandercar-vt bvandercar-vt changed the title Preprocessor output files that have an import or require Preprocessor expected output format? Doesn't accept import or `require. Oct 17, 2024
@bvandercar-vt bvandercar-vt changed the title Preprocessor expected output format? Doesn't accept import or `require. Preprocessor expected output format? Doesn't accept import (es) or require (cjs). Oct 17, 2024
@bvandercar-vt bvandercar-vt changed the title Preprocessor expected output format? Doesn't accept import (es) or require (cjs). What is the Preprocessor expected output format? Doesn't accept import (es) or require (cjs). Need better documentation. Oct 17, 2024
@jennifer-shehane
Copy link
Member

@bvandercar-vt Could you provide a small repo that reproduces the issue you’re describing?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Oct 19, 2024
@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Nov 5, 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

2 participants