-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
bug
cannot use pug template inheritance
test
sample repo: https://github.com/benblazak/_svelte_preprocess__pug_template_inheritance
git clone https://github.com/benblazak/_svelte_preprocess__pug_template_inheritance.git
cd _svelte_preprocess__pug_template_inheritance
npm install
npm run dev -- --open
- try the mixin link
- this should work
- try the template link
- this should fail with the error message
Declaration of template inheritance ("extends") should be the first thing in the file. There can only be one extends statement per file.
- this should fail with the error message
ideas
i think the reason extends ...
is not the first thing in the file is because the svelte mixins are prepended here:
svelte-preprocess/src/transformers/pug.ts
Line 68 in a239e82
const input = `${GET_MIXINS(identationType ?? 'space')}\n${content}`; |
Minasokoni
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed