mirror of https://github.com/sveltejs/svelte
Merge pull request #2332 from sveltejs/preprocess-partial-names
don't preprocess tags whose names begin with script/stylepull/2341/head
commit
9e4775704a
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
preprocess: {
|
||||
script: () => ({ code: '' }),
|
||||
style: () => ({ code: '' })
|
||||
}
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
<script-foo>
|
||||
foo
|
||||
</script-foo>
|
||||
<script>
|
||||
// bar
|
||||
</script>
|
||||
<style-foo>
|
||||
foo
|
||||
</style-foo>
|
||||
<style>
|
||||
bar {}
|
||||
</style>
|
@ -0,0 +1,8 @@
|
||||
<script-foo>
|
||||
foo
|
||||
</script-foo>
|
||||
<script></script>
|
||||
<style-foo>
|
||||
foo
|
||||
</style-foo>
|
||||
<style></style>
|
Loading…
Reference in new issue