dev-server should rewrite imports for json & css #2368
Unanswered
jogibear9988
asked this question in
General
Replies: 2 comments 7 replies
-
Why do you think it should do that? what would be the use case? and why not write the import with the assert into the source directly? 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
-
because there are many libs wich have ESM code with css/json imports without asserts, cause they were used via bundlers. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
dev-sevrer should rewrite imports for css & json. it should add an assert statement to it
see: https://web.dev/css-module-scripts/
Beta Was this translation helpful? Give feedback.
All reactions