eagerpatch/navita

webpack-plugin: run loaders on everything that looks like urls

Opened this issue · 0 comments

Our loader runs too early in some cases. If we include our loader too late in the process, some of our identifiers might've been three shaken away (such as globalStyle).

If we include it too early, and user code in Navita rely on other transforms that also happens, our evaluation process will fail.

So, maybe two loaders? One that finds modules that might be tree shaken away, and does something to/with them, and then the one we have now, but to make sure it runs last.