fix: change the way we import 'esprima' to avoid wrong path resolution in Angular projects

This commit is contained in:
VladimirAmiorkov
2019-10-07 16:51:31 +03:00
parent d7d7ebf5de
commit fe2b9778c9

View File

@@ -5,7 +5,7 @@
// Code distributed by Google as part of the polymer project is also // Code distributed by Google as part of the polymer project is also
// subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt // subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
var esprima = require("../esprima").esprima; var esprima = require("../../js-libs/esprima").esprima;
var Path = require("./path-parser").Path; var Path = require("./path-parser").Path;
(function (global) { (function (global) {