Skip to content

mjackson/rollup-watch-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an experiment in writing a plugin for Rollup that dynamically calculates inputs to the compiler based on the contents of the src directory.

Currently, it seems that Rollup does not correctly watch for new files added to a directory that is used in this.addWatchFile. This was reported in #3704.

The rollup.config.js in this repo has 2 plugins:

To reproduce the problem:

  • Run the build in watch mode using npm run watch (or rollup -c -w). You'll see the build output in the build directory.
  • Now remove the build directory and add a new file to the src directory. You should not see another build.

To fix this, swap the watchFiles plugin for the watchFilesWorkaround plugin in rollup.config.js. Re-run the test and you should see rebuilds when new files are added to the src directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published