1.0.0 • Published 3 years ago

@marcusnotheis/babel-plugin-ui5-webcomponents-react-nextjs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

  1. Install the babel-plugin:
npm install @marcusnotheis/babel-plugin-ui5-webcomponents-react-nextjs --save-dev
  1. 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.