Unitools | Next Adapter | Next.js | By GeekyAnts
Features
- Support for
.next-web.{js|ts|jsx|tsx}
file extension. - Automatic aliasing of
@unitools/*
packages to@unitools/*-next
andreact-native
toreact-native-web
. - Transpilation support for
react-native
,react-native-web
,@unitools/*-next
,@expo/*
, andexpo-*
packages.
Installation
To install the package, use either of the following commands:
npm i @unitools/next-adapter
yarn add @unitools/next-adapter
Then, add the following configuration to your next.config.js
file:
/** @type {import('next').NextConfig} */const { withUnitools } = require("@unitools/next-adapter");const config = withUnitools({});
module.exports = config;