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
  • Loading branch information
jbedard committed Apr 6, 2020
1 parent 0678b64 commit 3753300
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[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 3753300

Please sign in to comment.