liferay npm bundler preset reactjs
npm install --save-dev liferay-npm-bundler-preset-reactjs
Add the following to your .npmbundlerrc file:
{
"preset": "liferay-npm-bundler-preset-react"
}
This preset includes the following Babel presets:
babel-preset-liferay-standard
And the following Liferay NPM Bundler plugins:
liferay-npm-bundler-plugin-replace-browser-modules