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
Per discussions in #1301 (comment), it was reported that trying to use bare specifiers for CSS Module Scripts was not working and giving an error in the console
The solution here is to be more accommodating to non-JavaScript files like CSS and JSON in particular, now that we have added support Import Attributes
Type of Change
Feature
Summary
Per discussions in #1301 (comment), it was reported that trying to use bare specifiers for CSS Module Scripts was not working and giving an error in the console
Details
After digging in a little bit, the reason is now pretty obvious. When building up the import map, we specifically only look for JavaScript files from node_modules to add to the import map
https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/src/lib/walker-package-ranger.js#L122
The solution here is to be more accommodating to non-JavaScript files like CSS and JSON in particular, now that we have added support Import Attributes
In the meantime, "deep linking" to the file works
The text was updated successfully, but these errors were encountered: