Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to use additional babel plugins #218

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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