Skip to content

Commit

Permalink
style: fix eslint problems in browser rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Nov 5, 2024
1 parent b989d36 commit 97d5879
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions packages/browser/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,32 @@ import typescript from 'rollup-plugin-typescript2'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import { babel } from '@rollup/plugin-babel'

import pkg from './package.json'

const baseOutputOptions = {
sourcemap: true,
name: pkg.jsName
sourcemap: true,
name: pkg.jsName
}

const umdOutputOptions = {
...baseOutputOptions,
file: pkg.main,
format: 'umd',
name: 'qiniu-js'
...baseOutputOptions,
file: pkg.main,
format: 'umd',
name: 'qiniu-js'
}

export default [
{
input: 'src/index.ts',
plugins: [
resolve({ browser: true }),
commonjs(),
typescript(),
babel({ babelHelpers: 'bundled' })
],
output: [
umdOutputOptions
]
}
{
input: 'src/index.ts',
plugins: [
resolve({ browser: true }),
commonjs(),
typescript(),
babel({ babelHelpers: 'bundled' })
],
output: [
umdOutputOptions
]
}
]

0 comments on commit 97d5879

Please sign in to comment.