mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 01:11:24 +01:00
use compileOptions when showing failing code
This commit is contained in:
parent
d287cc57d8
commit
1655249d7a
@ -44,7 +44,7 @@ describe( 'generate', () => {
|
||||
|
||||
try {
|
||||
const source = fs.readFileSync( `test/generator/${dir}/main.html`, 'utf-8' );
|
||||
compiled = svelte.compile( source );
|
||||
compiled = svelte.compile( source, compileOptions );
|
||||
} catch ( err ) {
|
||||
if ( config.compileError ) {
|
||||
config.compileError( err );
|
||||
|
Loading…
Reference in New Issue
Block a user