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 429fbc9 commit 78e9db2Copy full SHA for 78e9db2
tools/gutenberg/copy-gutenberg-build.js
@@ -240,7 +240,9 @@ function generateScriptModulesPackages() {
240
processDirectory( fullPath, baseDir );
241
} else if ( entry.name.endsWith( '.min.asset.php' ) ) {
242
const relativePath = path.relative( baseDir, fullPath );
243
- const jsPathMin = relativePath.replace( /\.asset\.php$/, '.js' );
+ // Normalize path separators to forward slashes for cross-platform consistency
244
+ const normalizedPath = relativePath.split( path.sep ).join( '/' );
245
+ const jsPathMin = normalizedPath.replace( /\.asset\.php$/, '.js' );
246
const jsPathRegular = jsPathMin.replace( /\.min\.js$/, '.js' );
247
248
try {
0 commit comments