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

feature: move buildfile to build folder #214720

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SimonSiefke
Copy link
Contributor

Helps with #160416.

When the source files are in ECMAScript Module (ESM) format, an error occurs with src/buildfile.js:

Error [ERR_REQUIRE_ESM]: require() of ES Module '../src/buildfile.js' not supported

It seems the error occurs because the build folder files are in CommonJS format and cannot import ESM files like src/buildfile.js.

To resolve this issue, moving src/buildfile.js to build/buildfile.js appears to be an effective solution.

Abdulrahmacmd

This comment was marked as spam.

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

Successfully merging this pull request may close these issues.

None yet

3 participants