@torpor/view 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/compile.cjs +4 -0
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.js +4 -0
- package/dist/compile.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/src/compile/parse/parseCode.ts +4 -0
package/package.json
CHANGED
|
@@ -217,17 +217,21 @@ function parseComponentStyle(status: ParseStatus) {
|
|
|
217
217
|
// Skip block comments
|
|
218
218
|
status.i = status.source.indexOf("*/", status.i) + 1;
|
|
219
219
|
} else if (char === '"' || char === "'") {
|
|
220
|
+
styleSource += char;
|
|
220
221
|
// Skip string contents
|
|
221
222
|
for (let j = status.i + 1; j < status.source.length; j++) {
|
|
223
|
+
styleSource += status.source[j];
|
|
222
224
|
if (status.source[j] === char && status.source[j - 1] !== "\\") {
|
|
223
225
|
status.i = j;
|
|
224
226
|
break;
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
229
|
} else if (char === "`") {
|
|
230
|
+
styleSource += char;
|
|
228
231
|
// Skip possibly interpolated string contents
|
|
229
232
|
let level2 = 0;
|
|
230
233
|
for (let j = status.i + 1; j < status.source.length; j++) {
|
|
234
|
+
styleSource += status.source[j];
|
|
231
235
|
if (status.source[j] === char && status.source[j - 1] !== "\\" && level2 === 0) {
|
|
232
236
|
status.i = j;
|
|
233
237
|
break;
|