Can't load xml file with builder.load()


#1

How load xml file with builder.load() when use --bundle?
I use NS core (not Angular). Without webpack all works.


#2

Try registering your module,

global.registerModule("path/to/component", () => require("path/to/component"))

#3

it’s just in app xml file. And it’s registered as described in bundle-config.ts (bundle.js contains it).
But builder.load() input attribute is file path, not module name.