How to modify module source? #12279
Unanswered
zhangyuang
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
a module can belong to multi entry so it's meaningless to decide which entry the module belongs to during loader stage, it's also not meaningful to overriding module source after make phase cause it's not consumed any more |
Beta Was this translation helpful? Give feedback.
3 replies
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 requirement: I currently have multiple entries, and I want to modify the module's content based on which entry it belongs to when processing the module. However, it seems impossible to determine which entry a module belongs to during the loader stage. Ideally, I would implement a hook within the plugin that can both determine the module's entry and modify its file content. I tried overriding
module._originSource, but it doesn't seem to work.Beta Was this translation helpful? Give feedback.
All reactions