-
Notifications
You must be signed in to change notification settings - Fork 361
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
.cjs extension in main
package.json field causes imported CSS file output to be overwritten
#883
Comments
main
package.json field causes CSS file output to be overwritten
main
package.json field causes CSS file output to be overwrittenmain
package.json field causes imported CSS file output to be overwritten
Sorry about that, was missing |
microbundle: 0.14.2 see the same error, does it published ?? |
No, that has not yet been published. |
thanks @rschristian , when will publish it? is there a estimate time? |
There's no ETA, no. You can use something like |
@leohxj Just wanted to update you that v0.15 was just published containing this fix. |
@rschristian thanks bro |
Using a
.cjs
extension in themain
field ofpackage.json
(e.g."main": "./dist/foo.cjs"
) as per README causes microbundle to swallow any .css or .scss files importedReproduction steps
Repo: https://github.com/lokimckay-references/microbundle-883
npm init -y
npm install microbundle --save-dev
styles.css
andindex.js
filesimport "./styles.css"
withinindex.js
package.json
as per READMEsource
field to point toindex.js
npm run build
Actual output
Expected output
Workaround
Change the file extension of the
main
field from./dist/foo.cjs
->./dist/foo.js
= achieves expected output
The text was updated successfully, but these errors were encountered: