Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths on windows machines use backslash instead of forwardslash on the replaced imports #6

Open
mpltr opened this issue May 1, 2021 · 1 comment

Comments

@mpltr
Copy link

mpltr commented May 1, 2021

Trying to copy a css module using this import statement:

import styles from 'Component.module.scss'

on windows machines results in the following when rollup builds:

var styles = _interopDefault(require('./..\assets\Component.module.scss'));

This breaks the style imports for the packages. I have a branched patched version which utilises a slash utility to fix the issue which I'm happy to PR, unless you have encountered this issue before and have a fix?

@stropho
Copy link
Owner

stropho commented Jun 4, 2022

Oh sorry, I totally missed this. Feel free to create a PR. I haven't used Windows in ages so I haven't come across this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants