-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Describe the bug
I am using swc.minify() API method to minify files.
Though, the sourcemap generated is different when used under Windows or under Linux.
Also, the .map files generates with \r\n newlines on Windows and \n newlines on Linux.
I needed to add code to rewrite the files with \n which is an ugly patch for now.
But the main issue is that the .map files are generated with different output when minified under Windows vs Linux.
Input code
You can find the code used here: https://github.com/OrchardCMS/OrchardCore/blob/main/.scripts/assets-manager/min.mjs
Config
{
compress: true,
sourceMap: true,
}Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
Should output the same from Windows or Linux
Actual behavior
No response
Version
1.11.1
Additional context
No response
Reactions are currently unavailable