ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Bundling should allow to mark input bundles as "do not resolve"

Open codeworrior opened this issue 5 years ago • 0 comments

Expected Behavior

Bundling should allow to specify an input source file as "bundle that must not be dissolved into pieces" and rather embed the input source as a whole.

Current Behavior

When a bundle is created that includes e.g. one of the sap-viz-* bundles, the builder logs many errors like

ERR! lbt:bundle:Resolver **** error: missing module sap/viz/framework/common/util/NameColorUtils.js, required by sap/viz/libs/sap-viz-info-charts.js

The resulting bundle works, but the log messages are annoying. And the current logic that checks for any module to exist might lead to unexpected behavior. It might be better to mark the input bundle explicitly as "do not dissolve".

Steps to reproduce the issue

  1. Create a bundle definition that includes sap/viz/
  2. Build the bundle
  3. Watch the console output

Affected components (if known)

codeworrior avatar Sep 28 '20 20:09 codeworrior