Skip to content

Commit

Permalink
Fix source map paths published to npm (#14409)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored and youknowriad committed Mar 20, 2019
1 parent e92e983 commit 29c7e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function buildJsFileFor( file, silent, environment ) {
const destPath = getBuildPath( file, buildDir );
const babelOptions = getBabelConfig( environment );
babelOptions.sourceMaps = true;
babelOptions.sourceFileName = file;
babelOptions.sourceFileName = file.replace( PACKAGES_DIR, '@wordpress' );

mkdirp.sync( path.dirname( destPath ) );
const transformed = babel.transformFileSync( file, babelOptions );
Expand Down

0 comments on commit 29c7e8c

Please sign in to comment.