feat: Make css-tree the default parser

This commit is contained in:
Darin Dimitrov
2019-12-10 17:16:20 +02:00
parent c5b7f439f2
commit ab4c389ede

View File

@ -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";
} }