diff --git a/build/build.node.ts b/build/build.node.ts index 8e4f67bb6f3..533abcf9977 100644 --- a/build/build.node.ts +++ b/build/build.node.ts @@ -1016,7 +1016,7 @@ namespace $ { var target = pack.resolve( `-/${bundle}.test.js` ) var targetMap = pack.resolve( `-/${bundle}.test.js.map` ) - var concater = new $mol_sourcemap_builder( target.parent().path(), ';') + var concater = new $mol_sourcemap_builder( this.root().relate( target.parent() ), ';') concater.add( '"use strict"' ) var exclude_ext = exclude.filter( ex => ex !== 'test' && ex !== 'dev' ) @@ -1041,7 +1041,7 @@ namespace $ { } try { const content = this.js_content( src.path() ) - concater.add( content.text, src.relate( target.parent() ), content.map) + concater.add( content.text, '', content.map) } catch( error: any ) { errors.push( error ) }