Skip to content

Handling/Transforming of .scss/.sass imports #307

@JoCa96

Description

@JoCa96

Describe the feature

.scss/.sass imports in .js/.ts files break when transpiled, because the .scss/.sass file doesn't exist anymore.
So, e.g. import "./styles/index.scss"; stays import "./styles/index.scss"; post-transpile, even though it must be import "./styles/index.css"; to still work.

As a workaround imports can be changed to use the .css file extension (e.g. import "./styles/index.css"; ) to work post-transpile.
Unfortunately this breaks IDE support and bundler support.

Is transforming these imports something that can/should be done by mkdist?

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions