Akryum / meteor-vite

MIT License
33 stars 16 forks source link

Replace Meteor-Vite plugin Regex with JavaScript language parser #38

Closed JorgenVatle closed 1 year ago

JorgenVatle commented 1 year ago

@Akryum I am so sorry for these large pull requests.

I've replaced most of the Regex we used to parse Meteor packages with a JavaScript parser to extract the data we need to build up Meteor stubs for Vite, this addresses most of the syntax-based edge cases caused by Meteor's package format.

It also makes it a lot easier to traverse through the bits of the package source we need to build up a good stub, all without having to worry about debugging and refactoring long lines of ungodly regex statements from the last PR. πŸ˜…

There's a few bits and pieces left to do, but I'll have the PR ready early next week. πŸ‘

I'm planning on shipping the fork as it's own package so it can be put in use and its own line of issue reports while this PR waits for a review.