liferay-npm-bundler-plugin-inject-package-dependencies

0.6.0 • Public • Published

liferay-npm-bundler-plugin-inject-angular-dependencies

Inject some peer dependencies which are needed to make Angular work.

Installation

npm install --save-dev liferay-npm-bundler-plugin-inject-angular-dependencies

Usage

Add the following to your .npmbundlerrc file:

{
    "*": {
        "plugins": [
            "inject-angular-dependencies"
        ]
    }
}

Technical Details

This plugin injects a dependency on rxjs in @angular/forms package. This is needed for Angular to work correctly under Liferay Portal npm architecture.

To determine the version of rxjs to use, the plugin scans the parent directory of @angular/forms for the rxjs package.

You can find more information about what happens with rxjs and @angular/forms in this issue.

/liferay-npm-bundler-plugin-inject-package-dependencies/

    Package Sidebar

    Install

    npm i liferay-npm-bundler-plugin-inject-package-dependencies

    Weekly Downloads

    1

    Version

    0.6.0

    License

    none

    Last publish

    Collaborators

    • izaera