Open mspoulsen opened 2 years ago
Haha ok I'll bite, it is a little bit of a dumb question. It's kind of like asking "do potatoes work with my car". I have no idea what you're trying to accomplish. Maybe if I did I could help?
I have a vue-cli app (which uses webpack under the hood) that uses nearley-loader in order for me to import .ne files in my frontend source code. Now, since Vite is this brand new shiny build tool that is much faster than webpack my question is if anybody can tell me if I will still be able to load .ne files - or do I need some sort of loader that has not been created yet?
I ask before I spend two days investigating it myself :)
Assuming you already searched npm and google for that and found nothing, so I think you have your answer. Don't let that discourage you though -- you should build the integration yourself!
Also I should say that I'm working on a build system called macrome that I hope will make this kind of problem obsolete. I must warn you that there isn't even a version of it published yet, but you can keep tabs on the progress over at the repo. The idea is that it constantly watches your code, and allows you to check built output into your working tree without making a mess. This way you have your javascript checked in -- not some crazy set of languages and hacks that needs a fragile ecosystem of tools to compile down to JS correctly (and the output of which may change over time), but your actual JS.
In theory when devs are able to use that tool to eliminate all the magic from their javascript, all bundlers should Just Work with minimal to no configuration.
That would be a relief! I am an app developer and I cannot begin to explain how much I hate the "tooling aspect" of front-end development. So much energy is wasted on thing that I as an app developer should not need to be concerned about.
But thanks a lot anyway. I will postpone the migration to vite and see what happens :)
FWIW I use vite and I was able to use it no problem. So long as you import the library properly via import * as nearley from 'nearley'
, it should work without issue
Hi,
This may very well be a dumb question, but will nearley.js work with vite.js?
I ask because I have a vue-cli app, that uses nearley that I would like to upgrade to vite.js :)
Thanks