0.1.5 • Published 3 years ago

@webpuppy/rollup-common v0.1.5

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

@webpuppy/rollup-common

small collection of rollup config presets generated based on package.json properties

createReactConfigFromPackage

options: bundleStyles - determines whether or not to bundle css-in-js with rollup-plugin-styles

description: creates a react rollup config with the following plugins:

  • @rollup/plugin-typescript
  • @rollup/plugin-babel
  • @rollup/plugin-node-resolve
  • @rollup/plugin-commonjs
  • rollup-plugin-terser
  • rollup-plugin-dts
  • rollup-plugin-terser

types output to lib/index.d.ts, package.json.main defines the commonjs output, and package.json.module defines the esm output

returns: the rollup config to override/extend/export to local rollup config

resources