1.0.4 • Published 5 years ago
@innei/test v1.0.4
Rollup Typescript library template
Please use pnpm do this.
pnpm iUsage
Package
Bundle your source code via tsc, rollup.
yarn packageDev
Start dev mode by Vite.
yarn devDelopy
Delopy example to GitHub Pages.
yarn delopy
yarn publishAdditional
If you want to bundle React JSX with rollup. Add additional packages.
pnpm i -D @babel/preset-react @babel/core @rollup/plugin-babelAnd, un-comment this in .babelrc.
{
"presets": ["@babel/preset-react"]
}Un-comment this in rollup.config.js
import { babel } from '@rollup/plugin-babel'
// ...
plugins: [
// ...
babel({}),
],
//...