mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Merge pull request #8185 from NativeScript/darind/css-parser-default
feat: Make css-tree the default parser
This commit is contained in:
@ -53,12 +53,12 @@ function ensureCssAnimationParserModule() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let parser: "rework" | "nativescript" | "css-tree" = "rework";
|
let parser: "rework" | "nativescript" | "css-tree" = "css-tree";
|
||||||
try {
|
try {
|
||||||
const appConfig = require("~/package.json");
|
const appConfig = require("~/package.json");
|
||||||
if (appConfig) {
|
if (appConfig) {
|
||||||
if (appConfig.cssParser === "css-tree") {
|
if (appConfig.cssParser === "rework") {
|
||||||
parser = "css-tree";
|
parser = "rework";
|
||||||
} else if (appConfig.cssParser === "nativescript") {
|
} else if (appConfig.cssParser === "nativescript") {
|
||||||
parser = "nativescript";
|
parser = "nativescript";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user