Skip to content

Commit

Permalink
fix(rollup): fix worker not picking up config file changes
Browse files Browse the repository at this point in the history
Fixes #1790
  • Loading branch information
jbedard committed Apr 9, 2020
1 parent dde8842 commit a19eb2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rollup/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ async function loadConfigFile(configFile) {

await runRollup(configFile, inputOptions, outputOptions);

// Ensure node isn't caching a previous version of the config file
// https://github.com/rollup/rollup/blob/v1.31.0/cli/run/loadConfigFile.ts#L52
delete require.cache[require.resolve(cjsConfigFile)];

// Read the config file:
// https://github.com/rollup/rollup/blob/v1.31.0/cli/run/loadConfigFile.ts#L54-L61
//
Expand Down

0 comments on commit a19eb2b

Please sign in to comment.