Skip to content

Cannot use plugins when using the published UMD bundle #3418

@christopherthielen

Description

@christopherthielen

Plugins can depend on ui-router-core. However, when using the prebuilt UMD bundles, ui-router-core is bundled together with the angularjs code. When a plugin tries to use something from ui-router-core, the module is not found as nothing is found in the global scope.

There are two options I've considered:

  1. Split up the UMD modules. Publish only the AngularJS bits in angular-ui-router.min.js, and force ui-router users to also add the ui-router-core.min.js UMD bundle when they upgrade.

  2. Add an adapter that re-exports the core bits and is published as core-adapter.umd.js

I'm going move with option 2 because I don't want to force all existing users who are used to a monolithic bundle to now explicitly include ui-router-core too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions