Skip to content

Commit 0183b14

Browse files
joshfarrantCopilot
andauthored
fix(rollup-plugin-import-css): register CSS files with rollup watcher (#7822)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ce88bdf commit 0183b14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/rollup-plugin-import-css/src

packages/rollup-plugin-import-css/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export function importCSS(options: ImportCSSOptions): Plugin {
6464
}
6565

6666
const sourceId = path.join(path.dirname(id), path.basename(id, '.js'))
67+
this.addWatchFile(sourceId)
6768
const code = await fs.readFile(sourceId, 'utf8')
6869
const hash = getSourceHash(code)
6970
const relativePath = path.relative(rootDirectory, sourceId)

0 commit comments

Comments
 (0)