Skip to content

SCSS prependData should happen only when lang="scss" or lang="sass" #379

Closed
@sudomf

Description

@sudomf

Describe the bug
Currently, when we have prependData option of scss preprocessor, the lang type of <style> is not being respected, the prependData are being injected ignoring the lang type. The prependData logic should be executed only when lang="scss" or lang="sass".

To Reproduce
https://github.com/maykefreitas/svelte-preprocess-example

Expected behavior
The expected behavior would be to not inject prependData unless the style tag has lang="scss".

Information about your project:

  • svelte-preprocess version: latest

The cause of this bug is the fact that this logic should be executed after the if declaration, not before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions