We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d11fc commit e116804Copy full SHA for e116804
src/preprocess.js
@@ -174,7 +174,7 @@ export const preprocess = (text, filename) => {
174
if (module.start > html.start) {
175
modulePreOffset += markupDiff;
176
}
177
- if (module.start > css.start) {
+ if (css && module.start > css.start) {
178
modulePreOffset += styleDiff;
179
180
if (instance && module.start > instance.start) {
@@ -190,7 +190,7 @@ export const preprocess = (text, filename) => {
190
if (instance.start > html.start) {
191
instancePreOffset += markupDiff;
192
193
- if (instance.start > css.start) {
+ if (css && instance.start > css.start) {
194
instancePreOffset += styleDiff;
195
196
if (module && instance.start > module.start) {
0 commit comments