Skip to content

Commit f54b68e

Browse files
authored
Update demo site
1 parent b086c77 commit f54b68e

File tree

4 files changed

+17056
-18827
lines changed

4 files changed

+17056
-18827
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
glob: require.resolve("./shim/glob"),
2020
"safer-buffer": require.resolve("./shim/safer-buffer"),
2121
module: require.resolve("./shim/module"),
22-
postcss$: require.resolve("postcss/lib/postcss.mjs"),
22+
postcss$: path.resolve(__dirname, "../../node_modules/postcss/lib/postcss.mjs"),
2323
},
2424
},
2525
plugins: [

lib/styles/parser/css-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class CSSParser {
228228
protected parseInternal(css: string): postcss.Root {
229229
try {
230230
return postcss.parse(css)
231-
} catch (e) {
231+
} catch (e: any) {
232232
this.addError(e)
233233
return postcssSafeParser(css)
234234
}

0 commit comments

Comments
 (0)