Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Oct 20, 2018
1 parent 8ae3e96 commit 4058fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function generateDepFile({ outputFile, sourceFiles = [], configFiles = [] }) {
let timestamp = Date.now();

// Save the depfile just before the node process exits.
process.on("beforeExit", () =>
process.once("beforeExit", () =>
writeDepFile({ outputFile, sourceFiles, configFiles, timestamp })
);

Expand All @@ -160,7 +160,7 @@ function writeDepFile({ outputFile, sourceFiles, configFiles, timestamp }) {
const outputDir = path.dirname(outputFile);

// Assert that the discovered bundle inputs are files that exist on disk.
sourceFiles.forEach(fs.accessSync);
sourceFiles.forEach(f => fs.accessSync(f));
// Since we also want to rebuild the bundle if rollup configuration or the the
// tooling changes (e.g. when typescript is updated), add the currently loaded
// node.js modules to the list of dependencies.
Expand Down

0 comments on commit 4058fe2

Please sign in to comment.