liferay-npm-bundler-preset-reactjs

liferay npm bundler preset reactjs

Usage no npm install needed!

<script type="module">
  import liferayNpmBundlerPresetReactjs from 'https://cdn.skypack.dev/liferay-npm-bundler-preset-reactjs';
</script>

README

liferay-npm-bundler-preset-reactjs

liferay npm bundler preset reactjs

Install

npm install --save-dev liferay-npm-bundler-preset-reactjs

Usage

Add the following to your .npmbundlerrc file:

{
    "preset": "liferay-npm-bundler-preset-react"
}

Technical Details

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