-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel output empty js files #9197
Comments
Looks like your login.js file is probably getting dead code eliminated since it's not actually doing anything. Try adding a |
Try adding |
Okay, dug a little more into this one cause it intersected with some of my own work. Looks like Parcel shouldn't really be dead code eliminating your code since your I tried playing around with adding an {
"isModule": false,
"jsc": {
"minify": {
"compress": {
"unused": false,
"mange": false
}
}
}
} But that didn't work. At the moment the only workaround I found was adding |
🐛 bug report
Simmilar to #7646
parcel build src/*.html returns empty javascript with a comment point to a source file, example is on https://github.com/RPLSaci/MyPadi
the main branch has a not empty login.js on the assets/js
but look at the gh-pages branch, the login.js in empty but not the index.js, index.js file is not empty
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Export a non empty js file
😯 Current Behavior
Export an empty js file
💁 Possible Solution
🔦 Context
This bug really affects my ci/cd since my project automaticly puts the gh pages by the github workflows
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: