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

Plugin transform required css #42

Open
windsonR opened this issue Dec 12, 2022 · 1 comment
Open

Plugin transform required css #42

windsonR opened this issue Dec 12, 2022 · 1 comment

Comments

@windsonR
Copy link

importsString += `import * as ${packageName} from ${item[1].replace(/`/g, `'`)};\n`;

Plugin will transform require('./a.css') into import * as __require_for_vite_ygkiDV from './a.css';
In Vite 4.0.0, it will console a warning.Default and named imports from CSS files are deprecated. Use the ?inline query instead.

@XinChou16
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants