You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/sourcemaps/samples/sourcemap-offsets/_config.js

19 lines
414 B

import { magic_string_bundle } from '../../helpers';
export const EXTERNAL = 'span { --external-var: 1px; }';
export default {
js_map_sources: ['input.svelte'],
css_map_sources: ['input.svelte', 'external.css'],
preprocess: [
{
style: ({ content, filename }) => {
return magic_string_bundle([
{ code: EXTERNAL, filename: 'external.css' },
{ code: content, filename }
]);
}
}
]
};