Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the CLI run generate/output in serial (#3201)
As a temporary workaround for concurrency issues in the plugin driver. See issue #3174
- Loading branch information
1 parent
9c85d2a
commit d8becda
Showing
8 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
description: 'writes files emitted by plugins in different output dirs', | ||
command: 'rollup -c' | ||
}; |
3 changes: 3 additions & 0 deletions
3
test/cli/samples/emit-file-multiple-dirs/_expected/dist1/main.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
|
||
assert.equal( ANSWER, 42 ); |
1 change: 1 addition & 0 deletions
1
test/cli/samples/emit-file-multiple-dirs/_expected/dist1/myfile
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
abc |
1 change: 1 addition & 0 deletions
1
test/cli/samples/emit-file-multiple-dirs/_expected/dist2/main.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
assert.equal( ANSWER, 42 ); |
1 change: 1 addition & 0 deletions
1
test/cli/samples/emit-file-multiple-dirs/_expected/dist2/myfile
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
abc |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
assert.equal( ANSWER, 42 ); |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default { | ||
input: "main.js", | ||
output: [ | ||
{ | ||
dir: "_actual/dist1", | ||
format: "cjs" | ||
}, | ||
{ | ||
dir: "_actual/dist2", | ||
format: "esm" | ||
} | ||
], | ||
plugins: [{ | ||
generateBundle() { | ||
this.emitFile({type: "asset", fileName: "myfile", source: "abc"}) | ||
} | ||
}] | ||
} |