We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc0002 commit 89a8020Copy full SHA for 89a8020
tests/macros.js
@@ -6,19 +6,23 @@ function cleanUpRollupOutput(output) {
6
return output.map(chunkOrAsset => {
7
if (chunkOrAsset.type === "asset") return chunkOrAsset;
8
9
- // These properties contain absolute paths,
10
- // and the path separator is not consistent between platforms.
+ // These properties are inconsistent between platforms.
+ // (absolute paths, end of line chars)
11
const {
12
dynamicImports,
13
facadeModuleId,
14
importedBindings,
15
imports,
16
modules,
17
referencedFiles,
18
+ code,
19
...rest
20
} = chunkOrAsset;
21
- return { ...rest };
22
+ return {
23
+ ...rest,
24
+ code: code.replace(/\r\n|\n/g, "\n"),
25
+ };
26
});
27
}
28
0 commit comments