Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always try to load config files directly if possible
- Loading branch information
1 parent
281f468
commit 2087c48
Showing
98 changed files
with
296 additions
and
187 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
File renamed without changes.
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,6 +1,5 @@ | ||
module.exports = { | ||
description: 'uses mjs config file which return config wrapped by defineConfig', | ||
command: 'rollup --config rollup.config.mjs', | ||
minNodeVersion: 13, | ||
execute: true | ||
}; |
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,5 +1,5 @@ | ||
module.exports = { | ||
description: 'uses ES6 module config file', | ||
command: 'rollup --config rollup.config.js', | ||
command: 'rollup --config rollup.config.js --bundleConfigAsCjs', | ||
execute: true | ||
}; |
File renamed without changes.
File renamed without changes.
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,5 +1,5 @@ | ||
module.exports = { | ||
description: 'allows cleaning up and modifying the command args in the config file', | ||
command: 'rollup --config rollup.config.js --some-option="foo" --another-option=42', | ||
command: 'rollup --config rollup.config.mjs --some-option="foo" --another-option=42', | ||
execute: true | ||
}; |
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,7 +1,7 @@ | ||
assert.deepEqual(COMMAND_OPTIONS, { | ||
_: [], | ||
config: 'rollup.config.js', | ||
c: 'rollup.config.js', | ||
config: 'rollup.config.mjs', | ||
c: 'rollup.config.mjs', | ||
'some-option': 'foo', | ||
'another-option': 42 | ||
}); |
File renamed without changes.
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,6 +1,6 @@ | ||
module.exports = { | ||
description: | ||
'if the config file returns a function then this will be called with the command args', | ||
command: 'rollup --config rollup.config.js --silent', | ||
command: 'rollup --config rollup.config.mjs --silent', | ||
execute: true | ||
}; |
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,6 +1,6 @@ | ||
assert.deepEqual(COMMAND_OPTIONS, { | ||
_: [], | ||
config: 'rollup.config.js', | ||
c: 'rollup.config.js', | ||
config: 'rollup.config.mjs', | ||
c: 'rollup.config.mjs', | ||
silent: true | ||
}); |
File renamed without changes.
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,4 +1,4 @@ | ||
module.exports = { | ||
description: 'uses correct import.meta.url in config files', | ||
command: 'rollup -c' | ||
command: 'rollup -c --bundleConfigAsCjs' | ||
}; |
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,5 +1,5 @@ | ||
module.exports = { | ||
description: 'allows config file to import json', | ||
command: 'rollup --config rollup.config.js', | ||
command: 'rollup --config rollup.config.js --bundleConfigAsCjs', | ||
execute: true | ||
}; |
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,5 +1,4 @@ | ||
module.exports = { | ||
description: 'supports native esm as well as CJS plugins when using .mjs in Node 13+', | ||
minNodeVersion: 13, | ||
command: 'rollup -c' | ||
}; |
File renamed without changes.
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,4 +1,4 @@ | ||
module.exports = { | ||
description: 'correctly generates sourcemaps for multiple outputs', | ||
command: 'rollup -c' | ||
command: 'rollup -c --bundleConfigAsCjs' | ||
}; |
Oops, something went wrong.