How to declare dependencies for individual files in Vite #16037
Unanswered
KDean-Dolphin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a project that has CodeMirror and Peggy as dependencies.
The build process requires running rollup against editor.mjs to produce editor.bundle.js and Peggy against mySyntax.peggy to product mySyntax.peggy.js. However, the process is manual, as any changes I make to editor.mjs (and rollup.config.mjs) don't trigger a recreation of editor.bundle.js, nor do any changes I make in mySyntax.peggy trigger a recreation of mySyntax.peggy.js. I've added the necessary scripts to package.json, but I can't for the life of me figure out how to automate them.
Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions