Package Exports
- @wordpress/babel-plugin-makepot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wordpress/babel-plugin-makepot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Babel Plugin Makepot
Babel plugin used to scan JavaScript files for use of localization functions. It then compiles these into a gettext POT formatted file as a template for translation. By default the output file will be written to gettext.pot
of the root project directory. This can be overridden using the "output"
option of the plugin.
{
"plugins": [
[ "@wordpress/babel-plugin-makepot", { "output": "languages/myplugin.pot" } ],
]
}
Installation
Install the module:
npm install @wordpress/babel-plugin-makepot --save-dev