We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e98ea6 commit 4b9b26cCopy full SHA for 4b9b26c
src/index.ts
@@ -116,7 +116,11 @@ export default function loader(
116
.relative(rootContext || process.cwd(), resourcePath)
117
.replace(/^(\.\.[\/\\])+/, '')
118
const shortFilePath = rawShortFilePath.replace(/\\/g, '/') + resourceQuery
119
- const id = hash(isProduction ? shortFilePath + '\n' + source : shortFilePath)
+ const id = hash(
120
+ isProduction
121
+ ? shortFilePath + '\n' + source.replace(/\r\n/g, '\n')
122
+ : shortFilePath
123
+ )
124
125
// feature information
126
const hasScoped = descriptor.styles.some((s) => s.scoped)
0 commit comments