Skip to content

Commit 97d5879

Browse files
committed
style: fix eslint problems in browser rollup config
1 parent b989d36 commit 97d5879

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

packages/browser/rollup.config.js

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@ import typescript from 'rollup-plugin-typescript2'
22
import resolve from '@rollup/plugin-node-resolve'
33
import commonjs from '@rollup/plugin-commonjs'
44
import { babel } from '@rollup/plugin-babel'
5+
56
import pkg from './package.json'
67

78
const baseOutputOptions = {
8-
sourcemap: true,
9-
name: pkg.jsName
9+
sourcemap: true,
10+
name: pkg.jsName
1011
}
1112

1213
const umdOutputOptions = {
13-
...baseOutputOptions,
14-
file: pkg.main,
15-
format: 'umd',
16-
name: 'qiniu-js'
14+
...baseOutputOptions,
15+
file: pkg.main,
16+
format: 'umd',
17+
name: 'qiniu-js'
1718
}
1819

1920
export default [
20-
{
21-
input: 'src/index.ts',
22-
plugins: [
23-
resolve({ browser: true }),
24-
commonjs(),
25-
typescript(),
26-
babel({ babelHelpers: 'bundled' })
27-
],
28-
output: [
29-
umdOutputOptions
30-
]
31-
}
21+
{
22+
input: 'src/index.ts',
23+
plugins: [
24+
resolve({ browser: true }),
25+
commonjs(),
26+
typescript(),
27+
babel({ babelHelpers: 'bundled' })
28+
],
29+
output: [
30+
umdOutputOptions
31+
]
32+
}
3233
]

0 commit comments

Comments
 (0)