mirror of https://github.com/sveltejs/svelte
parent
797818dc15
commit
ea2854ae73
@ -0,0 +1,10 @@
|
|||||||
|
import { EnableSourcemap } from '../../interfaces';
|
||||||
|
|
||||||
|
export default function check_enable_sourcemap(
|
||||||
|
enable_sourcemap: EnableSourcemap,
|
||||||
|
namespace: keyof Extract<EnableSourcemap, object>
|
||||||
|
) {
|
||||||
|
return typeof enable_sourcemap === 'boolean'
|
||||||
|
? enable_sourcemap
|
||||||
|
: enable_sourcemap[namespace];
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
compile_options: {
|
compile_options: {
|
||||||
enableSourcemap: 'css'
|
enableSourcemap: { css: true }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
compile_options: {
|
compile_options: {
|
||||||
enableSourcemap: 'js'
|
enableSourcemap: { js: true }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in new issue