Is there a way to force the project to include a m...
# javascript
w
Is there a way to force the project to include a module even if I don't reference it at all? I currently have to kind of hack it like so:
Copy code
@JsModule("reflect-metadata")
external val blank : dynamic
val force = blank.test
I just want the module to be included and run always. Without something like this being in the code somewhere, it never gets run and other dependencies that require it fail on load. putting the
package.to.blank
in the dce keep option does not retain it. Did I miss anything in the documentation?
t
It’s possible via webpack configuration. As shim (common practice for polyfills)