Inject declared imports dependencies.
npm install --save-dev liferay-npm-bundler-plugin-inject-imports-dependencies
Add the following to your .npmbundlerrc
file:
Without options:
{
"*": {
"plugins": ["inject-imports-dependencies"]
}
}
This plugin injects dependencies declared as imports inside the .npmbundlerrc
file in the package.json
file.