estools / esquery

ECMAScript AST query library.
http://estools.github.io/esquery/
Other
825 stars 91 forks source link

TypeError: esquery.parse is not a function #123

Open gaborantal opened 3 years ago

gaborantal commented 3 years ago

I'm using webpack plugin to bundle my application into one single js file. I'm using the library version of eslint which depends on esquery. After a successful build, running the bundled version of my application throws "TypeError: esquery.parse is not a function".

I could only find anything on StackOverflow, without any answer here. The op said that manually modifying the source code works. However, this is not a pleasant and desirable way to bundle a package.

Can you please take a look at?