liferay-npm-bundler-loader-babel-loader

2.32.0 • Public • Published

liferay-npm-bundler-loader-babel-loader

A liferay-npm-bundler loader that runs Babel on source files.

Installation

npm install --save-dev liferay-npm-bundler-loader-babel-loader

Usage

In order to use this loader you must declare a rule in your module's .npmbundlerrc file:

{
	"rules": [
		{
			"test": "\\.js$",
			"exclude": "node_modules",
			"use": [
				{
					"loader": "babel-loader",
					"options": {
						"presets": ["env", "react"]
					}
				}
			]
		}
	]
}

See the project's documentation for more information on how to use build rules.

Readme

Keywords

none

Package Sidebar

Install

npm i liferay-npm-bundler-loader-babel-loader

Weekly Downloads

630

Version

2.32.0

License

none

Unpacked Size

9.37 kB

Total Files

6

Last publish

Collaborators

  • antonio-ortega
  • daniel.sanz
  • izaera-lr
  • edalgrin
  • pat270
  • liferay
  • bryceosterhaus
  • matuzalemteles
  • gagranta
  • p2kmgcl
  • marko.cikos
  • kresimircoko
  • wincent
  • izaera