OK, it seems that I hit the wall with webpack... a...
# javascript
a
OK, it seems that I hit the wall with webpack... again (sorry). I have this file: https://github.com/root-project/jsroot/blob/master/scripts/JSRootGeoBase.js and its dependencies. I copy them into my resource directory so they could be visible for webpack, but I can't seem to find a way to make them visible from kotlin. I tried all combinations of
JsModule
and
JsQualifier
, but it does not seem to work. If I try to use
require
, the build is failing with a list of errors containing
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
.
The library has a npm package: https://www.npmjs.com/package/jsroot but it does not seem to play well with webpack