Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 084354e

Browse files
clarkdolukastaegert
authored andcommitted
fix: experimentalPreserveModules not supported in inlineDynamicImports message (rollup#2560)
1 parent fe92d1f commit 084354e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rollup/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ function getInputOptions(rawInputOptions: GenericConfigObject): any {
117117
}
118118

119119
if (inputOptions.inlineDynamicImports) {
120+
if (inputOptions.experimentalPreserveModules)
121+
error({
122+
code: 'INVALID_OPTION',
123+
message: `experimentalPreserveModules does not support the inlineDynamicImports option.`
124+
});
120125
if (inputOptions.manualChunks)
121126
error({
122127
code: 'INVALID_OPTION',
@@ -134,11 +139,6 @@ function getInputOptions(rawInputOptions: GenericConfigObject): any {
134139
message: 'Multiple inputs are not supported for inlineDynamicImports.'
135140
});
136141
} else if (inputOptions.experimentalPreserveModules) {
137-
if (inputOptions.inlineDynamicImports)
138-
error({
139-
code: 'INVALID_OPTION',
140-
message: `experimentalPreserveModules does not support the inlineDynamicImports option.`
141-
});
142142
if (inputOptions.manualChunks)
143143
error({
144144
code: 'INVALID_OPTION',

0 commit comments

Comments
 (0)