From 97d58791573395ee98ccbec0c7cd670fc9dc8b4b Mon Sep 17 00:00:00 2001 From: lihsai0 Date: Tue, 5 Nov 2024 17:42:25 +0800 Subject: [PATCH] style: fix eslint problems in browser rollup config --- packages/browser/rollup.config.js | 37 ++++++++++++++++--------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/packages/browser/rollup.config.js b/packages/browser/rollup.config.js index 6cd7fe50..a048ae95 100644 --- a/packages/browser/rollup.config.js +++ b/packages/browser/rollup.config.js @@ -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 + ] + } ]