Skip to content

Conversation

jefersonla
Copy link

Add additional babel plugins to the babel config, loading the configurations from package.json file.
To add additional plugins just add a property babel_plugins to enact property in package.json, in the same way plugins are defined on babel config files.

package.json example:

{
	...
	"enact": {
		"theme": "moonstone",
		"babel_plugins": [
			[
				"@babel/plugin-proposal-decorators",
				{
					"legacy": true
				}
			]
		]
	},
	...
}

Add additional babel plugins to the babel config, loading the configurations from `package.json` file.
To add additional plugins just add a property `babel_plugins` to enact property in `package.json`, in the same way plugins are defined on babel config files.

package.json example:
```
{
	...
	"enact": {
		"theme": "moonstone",
		"babel_plugins": [
			[
				"@babel/plugin-proposal-decorators",
				{
					"legacy": true
				}
			]
		]
	},
	...
}
```
@CLAassistant
Copy link

CLAassistant commented May 10, 2020

CLA assistant check
All committers have signed the CLA.

@jefersonla
Copy link
Author

Sorry for the multiple submissions. Prettier for some reason is not working in my computer so I've used travis log to format properly my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants