Skip to content

Commit

Permalink
fix: experimentalPreserveModules not supported in inlineDynamicImport…
Browse files Browse the repository at this point in the history
…s message (#2560)
  • Loading branch information
clarkdo authored and lukastaegert committed Nov 17, 2018
1 parent fe92d1f commit 084354e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rollup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ function getInputOptions(rawInputOptions: GenericConfigObject): any {
}

if (inputOptions.inlineDynamicImports) {
if (inputOptions.experimentalPreserveModules)
error({
code: 'INVALID_OPTION',
message: `experimentalPreserveModules does not support the inlineDynamicImports option.`
});
if (inputOptions.manualChunks)
error({
code: 'INVALID_OPTION',
Expand All @@ -134,11 +139,6 @@ function getInputOptions(rawInputOptions: GenericConfigObject): any {
message: 'Multiple inputs are not supported for inlineDynamicImports.'
});
} else if (inputOptions.experimentalPreserveModules) {
if (inputOptions.inlineDynamicImports)
error({
code: 'INVALID_OPTION',
message: `experimentalPreserveModules does not support the inlineDynamicImports option.`
});
if (inputOptions.manualChunks)
error({
code: 'INVALID_OPTION',
Expand Down

0 comments on commit 084354e

Please sign in to comment.