Skip to content

Commit

Permalink
$mol_build: fixed test sm
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Sep 17, 2023
1 parent 90038f3 commit 426d984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand All @@ -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 )
}
Expand Down

0 comments on commit 426d984

Please sign in to comment.