chore: prep for es2017 builds

This commit is contained in:
Nathan Walker
2020-07-26 00:27:24 -07:00
parent 0f58416e4b
commit 4a6ddb6f03
9 changed files with 128 additions and 73 deletions

View File

@@ -1,5 +1,4 @@
import { parse as parseType } from 'css-tree';
const parse: typeof parseType = require('css-tree');
import { parse } from 'css-tree';
function mapSelectors(selector: string): string[] {
if (!selector) {

View File

@@ -1,6 +1,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.XmlParser = exports.ParserEvent = exports.ParserEventType = void 0;
var easysax = require("../js-libs/easysax");
var easysax = require('../js-libs/easysax');
var easysax_1 = require("../js-libs/easysax");
var ParserEventType = (function () {
function ParserEventType() {
}
@@ -413,7 +414,7 @@ function _HandleAmpEntities(found, decimalValue, hexValue, wordValue) {
var XmlParser = (function () {
function XmlParser(onEvent, onError, processNamespaces) {
this._processNamespaces = processNamespaces;
this._parser = new easysax.EasySAXParser();
this._parser = new easysax_1.EasySAXParser();
var that = this;
this._parser.on('startNode', function (elem, attr, uq, tagend, str, pos) {
var attributes = attr();