Skip to content

Commit 02ac734

Browse files
tests(output): add test for multiple chunks with output.preserveModules=true
1 parent 88fe003 commit 02ac734

File tree

3 files changed

+5484
-0
lines changed

3 files changed

+5484
-0
lines changed

tests/output.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ test(
7676
}
7777
);
7878

79+
test(
80+
[
81+
"output.dir = 'sub/abcd'",
82+
"preserveModules = true",
83+
].join(" && "),
84+
outputSnapshotWithFixedInputMacro,
85+
{
86+
dir: "sub/abcd",
87+
preserveModules: true,
88+
}
89+
);
90+
7991
// TODO: recast throws an error when a chunk contains dynamic imports,
8092
// I tried to use acorn instead of the default esprima parser, but the error is still the same.
8193
// I'll invistigate the source of that error later, but for now I'll only test static imports.

0 commit comments

Comments
 (0)