Skip to content

file content is "undefined" if main.dependencies == boot.dependencies #8

Description

@timaschew

I ran into this issue, the result was:
a boot output with everything
and each pages output with: undefined

It should be an empty string, not undefined, throw an error, or show a warning?

I patched my bunderl.js/lib/page.js this way:

    // resolve boot bundles
    flatten(locals[boot])
    .forEach(function (branch) {
      branch.bundle = boot;
      var bootLocals = Object.keys(branch.locals);
      if (bootLocals.length > 0) {
        bootLocals.forEach(function (local) {
          if (bundles.indexOf(local) != -1)
            console.log('WARNING: dependency "'+local+'" is defined in both: root component and "'+branch.name+'"');
        });
      }
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions