babel-plugin-add-module-metadata
v2.32.0
Published
A Babel plugin to add AMD modules' metadata to the manifest.json file.
Downloads
27,930
Maintainers
Keywords
Readme
babel-plugin-add-module-metadata
Add AMD modules' metadata to the manifest.json file.
Installation
npm install --save-dev babel-plugin-add-module-metadata
Usage
Add the following to your .babelrc
file:
Without options:
{
"plugins": ["add-module-metadata"]
}
Technical Details and Options
This plugin scans JS modules for certain patterns of code and adds metadata to the manifest.json
file generated by the liferay-npm-bundler
.
Such metadata may be used to describe the module prior to its load or parse.