You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, it seems the @import statement in .css file when trying to bundling it, does not work. I get the following error ( the resulting bundle does not include correctly the code where @import points:
But if i place @import statement at bottom or the in middle of the app.css file, then it works. The issue seems to happen just if the @import statement is placed on top.
Maybe there's something i wrong but i don't know what. Please check it about.
esbuild version is: 0.8.43
The text was updated successfully, but these errors were encountered:
Because the ~~~~~~~ in the warning message is three spaces off from the @import, I'm guessing your file starts with a byte order mark (i.e. the bytes 0xEF 0xBB 0xBF). It looks like esbuild doesn't currently handle them. Whatever editor you're using to create that file is inserting those bytes. A quick workaround on your end could be to remove those bytes in your file. But esbuild should be changed to handle this case, so this is a bug in esbuild.
evanw
changed the title
@import statement in .css file bundling
Skip over a leading BOM in CSS files
Feb 9, 2021
Hello, it seems the @import statement in .css file when trying to bundling it, does not work. I get the following error ( the resulting bundle does not include correctly the code where @import points:
-> app.css
-> esbuild-config.js
But if i place @import statement at bottom or the in middle of the app.css file, then it works. The issue seems to happen just if the @import statement is placed on top.
Maybe there's something i wrong but i don't know what. Please check it about.
esbuild version is: 0.8.43
The text was updated successfully, but these errors were encountered: