navita icon indicating copy to clipboard operation
navita copied to clipboard

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

Open Zn4rK opened this issue 2 months ago • 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.

Zn4rK avatar Apr 14 '24 10:04 Zn4rK