Skip to content
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

Bun.Transpiler import foo from "/foo.css" with {type:"css"}; | 支持CSS模块原生导入 #15760

Open
vamsaya opened this issue Dec 14, 2024 · 0 comments
Labels
enhancement New feature or request transpiler parser || printer

Comments

@vamsaya
Copy link

vamsaya commented Dec 14, 2024

What is the problem this feature would solve?

import foo from "/foo.css" with {type:"css"};

After the above code is converted, the content after 'with' will be deleted. The JS browser now natively supports importing CSS syntax. Please do not delete the content after 'with'

import foo from "/foo.css"; // Deleted it:  with {type:"css"}

What is the feature you are proposing to solve the problem?

css module

What alternatives have you considered?

No response

@vamsaya vamsaya added the enhancement New feature or request label Dec 14, 2024
@RiskyMH RiskyMH added the transpiler parser || printer label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request transpiler parser || printer
Projects
None yet
Development

No branches or pull requests

2 participants