mirror of https://github.com/sveltejs/svelte
Merge pull request #295 from sveltejs/sourcemaps
add outputFilename option for sourcemap generationpull/298/head
commit
610dff5573
@ -0,0 +1 @@
|
|||||||
|
<p>no moving parts</p>
|
@ -0,0 +1,9 @@
|
|||||||
|
const fs = require( 'fs' );
|
||||||
|
const path = require( 'path' );
|
||||||
|
|
||||||
|
export function test ({ assert, map }) {
|
||||||
|
assert.deepEqual( map.sources, [ 'input.html' ]);
|
||||||
|
assert.deepEqual( map.sourcesContent, [
|
||||||
|
fs.readFileSync( path.join( __dirname, 'input.html' ), 'utf-8' )
|
||||||
|
]);
|
||||||
|
}
|
Loading…
Reference in new issue