sdu-react-scripts-rollup 1.0.3
Install from the command line:
Learn more about npm packages
$ npm install @elseu/sdu-react-scripts-rollup@1.0.3
Install via package.json:
"@elseu/sdu-react-scripts-rollup": "1.0.3"
About this version
If you want to use this Rollup configuration in a React project, you can install it with the following steps.
First, install this package by running npm i @elseu/sdu-react-scripts-rollup -D
.
Then install Rollup as a peer dependency. Just copy this line and paste in your terminal.
npm install --save-dev rollup
Then create a file named rollup.config.js with following contents in the root folder of your project:
// rollup.config.js
import createDefaultRollupConfig from '@elseu/sdu-react-scripts-rollup'
import pkg from './package.json';
export default {
...createDefaultRollupConfig(pkg),
// Your custom Rollup config here...
}
The default rollup config uses entry points in your package json. They should be like this:
{
// ...other package.json props,
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
}
If you are using the package @elseu/sdu-titan
in your project you need the custom babel plugin transform-titan-pure-annotations.
Details
- sdu-react-scripts-rollup
-
elseu
- about 3 years ago
- MIT
- 10 dependencies
Assets
- sdu-react-scripts-rollup-1.0.3-npm.tgz
Download activity
- Total downloads 255
- Last 30 days 0
- Last week 0
- Today 0