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/preprocess/samples/use-coffeescript-preprocessor/_config.js

15 lines
255 B

import * as CoffeeScript from 'coffeescript';
export default {
cascade: false,
script: ({content, attributes}) => {
if (attributes.type !== 'text/coffeescript') {
return null;
}
return {
code: CoffeeScript.compile(content, {})
};
},
};