This package includes the Babel preset used by Enact.
The easiest way to use this configuration is with Enact CLI, which includes it by default. You don’t need to install it separately in Enact projects.
If you want to use this Babel preset in a project not built with Enact CLI, you can install it with the following steps.
First, install Babel.
Then install babel-preset-enact.
npm install babel-preset-enact --save-dev
Then create a file named .babelrc
with the following contents in the root folder of your project:
{
"presets": ["babel-preset-enact"]
}
For more information including .babelrc
setup, please see the Babel docs.
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
Copyright (c) 2023-2024 LG Electronics
Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.