Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f4310d
commit 6b43b23
Showing
7 changed files
with
12 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<=> | ||
export default 42; |
23 changes: 4 additions & 19 deletions
23
test/cli/samples/watch/watch-config-early-update/rollup.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
|
||
import path from 'path'; | ||
import fs from 'fs'; | ||
const messageFile = path.resolve(__dirname, '_actual', 'message.txt'); | ||
export default new Promise(resolve => { | ||
fs.writeFileSync(messageFile, 'loading'); | ||
const watcher = fs.watch(messageFile, event => { | ||
if (event === 'change') { | ||
const content = fs.readFileSync(messageFile, 'utf8'); | ||
if (content === 'loaded') { | ||
watcher.close(); | ||
fs.writeFileSync(messageFile, 'resolved'); | ||
resolve({ | ||
input: {output1: "main.js"}, | ||
export default { | ||
input: {output2: "main.js"}, | ||
output: { | ||
dir: "_actual", | ||
format: "es" | ||
} | ||
}); | ||
} | ||
} | ||
}); | ||
}); | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
throw new Error("Config contains initial errors"); | ||
export default { | ||
input: {output: "main4.js"}, | ||
output: { | ||
dir: "_actual", | ||
format: "es" | ||
} | ||
}; |