Skip to content

Commit

Permalink
fix(css): ?inline cannot self-accept (#5433)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Oct 27, 2021
1 parent 2f4dc31 commit d283d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Expand Up @@ -206,7 +206,7 @@ export function cssPlugin(config: ResolvedConfig): Plugin {
const thisModule = moduleGraph.getModuleById(id)
if (thisModule) {
// CSS modules cannot self-accept since it exports values
const isSelfAccepting = !modules
const isSelfAccepting = !modules && !inlineRE.test(id)
if (deps) {
// record deps in the module graph so edits to @import css can trigger
// main import to hot update
Expand Down

0 comments on commit d283d9b

Please sign in to comment.