[@rollup/plugin-replace] How to replace a string inside node_modules #1646
Unanswered
hamboomger
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a following vite.config.mts config:
I'm using some of the legacy jquery plugins, that are installed as npm packages, and I need to replace this inside them:
With this:
Unfortunately my current config does not replace
factory( window.jQuery );
withfactory( jQuery );
. The first replace({...}) works fine however fine however:Is there any way to replace a string inside node_modules?
Beta Was this translation helpful? Give feedback.
All reactions