2.32.0 • Published 2 months ago

liferay-npm-bundler-plugin-inject-peer-dependencies v2.32.0

Weekly downloads
4,079
License
-
Repository
github
Last release
2 months ago

liferay-npm-bundler-plugin-inject-peer-dependencies

Inject peer and undeclared dependencies (as long as they are installed under

"node_modules") in package.json files.

Installation

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

Usage

Add the following to your .npmbundlerrc file:

Without options:

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

With options:

{
	"*": {
		"plugins": [
			[
				"inject-peer-dependencies",
				{
					"defineCall": "Liferay.Loader.define"
				}
			]
		]
	}
}

Technical Details

This plugin injects missing dependencies in package.json files when they are found inside AMD define() calls in any of their module files and the dependency is installed under "node_modules". This is needed for peer dependencies to work correctly under Liferay's npm architecture and it may also make some incorrect setups work they way they do on Node.js.

To determine the version of the dependencies to inject, the plugin resolves the peer/undeclared packages from the context of the module where they are referenced using the standard node resolve algorithm.

Please note that, for the referenced packages to be included they must also be listed in the project's package.json so that they are included in the final OSGi bundle.

2.32.0

2 months ago

3.0.0-alpha.6

5 months ago

2.31.1

1 year ago

2.31.0

2 years ago

2.31.2

1 year ago

2.29.0

2 years ago

2.30.0

2 years ago

2.28.1

2 years ago

2.28.3

2 years ago

2.28.2

2 years ago

2.28.0

2 years ago

2.27.0

3 years ago

2.25.0

3 years ago

2.26.0

3 years ago

2.24.3

3 years ago

2.24.2

3 years ago

2.24.1

3 years ago

2.24.0

3 years ago

2.23.0

3 years ago

2.22.1

3 years ago

2.22.0

3 years ago

2.21.0

3 years ago

2.20.0

3 years ago

2.19.4

4 years ago

2.19.3

4 years ago

2.19.2

4 years ago

2.19.1

4 years ago

2.19.0

4 years ago

2.18.8

4 years ago

2.18.7

4 years ago

2.18.6

4 years ago

2.18.5

4 years ago

2.18.4

4 years ago

2.18.3

4 years ago

2.18.2-alpha.0

4 years ago

2.18.2

4 years ago

2.18.1

4 years ago

2.18.0

4 years ago

2.17.1

4 years ago

2.17.0

4 years ago

2.16.2

4 years ago

2.16.1

4 years ago

2.16.0

4 years ago

2.15.1

4 years ago

2.15.0

4 years ago

2.14.2-alpha.0

4 years ago

2.14.1

4 years ago

2.14.0

5 years ago

2.6.3-alpha.126

5 years ago

2.13.3-alpha.8

5 years ago

2.13.3-alpha.6

5 years ago

2.13.3

5 years ago

2.13.2

5 years ago

2.13.1

5 years ago

2.13.0

5 years ago

2.12.0

5 years ago

2.11.0

5 years ago

2.10.0

5 years ago

2.9.0

5 years ago

2.8.0

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.1

5 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-rc.4

6 years ago

2.0.0-rc.3

6 years ago

2.0.0-rc.2

6 years ago

2.0.0-rc.1

6 years ago