Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Fenng authored and actions-user committed Sep 5, 2022
1 parent dac1298 commit 71c9653
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions packages/rrweb-player/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ import css from 'rollup-plugin-css-only';
// eslint-disable-next-line no-undef
const production = !process.env.ROLLUP_WATCH;

const entries = (production
? [
{ file: pkg.module, format: 'es', css: false },
{ file: pkg.main, format: 'cjs', css: false },
{
file: pkg.unpkg,
format: 'iife',
name: 'rrwebPlayer',
css: 'style.css',
},
]
: []
const entries = (
production
? [
{ file: pkg.module, format: 'es', css: false },
{ file: pkg.main, format: 'cjs', css: false },
{
file: pkg.unpkg,
format: 'iife',
name: 'rrwebPlayer',
css: 'style.css',
},
]
: []
).concat([
{
file: 'public/bundle.js',
Expand Down

0 comments on commit 71c9653

Please sign in to comment.