What is the Preprocessor expected output format? Doesn't accept import
(es) or require
(cjs). Need better documentation.
#30414
Labels
stage: needs information
Not enough info to reproduce the issue
What would you like?
Would like better documentation on the expected output file format of a preprocessor.
If I output as
es
, I get errorCannot use import statement outside a module
If I output as
cjs
, I get errorrequire 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
The text was updated successfully, but these errors were encountered: