@marcusnotheis/babel-plugin-ui5-webcomponents-react-nextjs
v1.0.0
Published
Babel Plugin to allow the usage of [UI5 Web Components for React](https://github.com/SAP/ui5-webcomponents-react) in [Next.js](https://nextjs.org/)
Downloads
3
Readme
babel-plugin-ui5-webcomponents-react-nextjs
Babel Plugin to allow the usage of UI5 Web Components for React in Next.js
Usage
Prerequisite: you have created a Next.js app, e.g. by using create-next-app
.
- Install the babel-plugin:
npm install @marcusnotheis/babel-plugin-ui5-webcomponents-react-nextjs --save-dev
- Create
.babelrc
in the root of your project with the following content:
{
"presets": ["next/babel"],
"plugins": ["@marcusnotheis/babel-plugin-ui5-webcomponents-react-nextjs"]
}
That's it :tada:. You can now run your app by starting npm run dev
.