File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,32 @@ import typescript from 'rollup-plugin-typescript2'
22import resolve from '@rollup/plugin-node-resolve'
33import commonjs from '@rollup/plugin-commonjs'
44import { babel } from '@rollup/plugin-babel'
5+
56import pkg from './package.json'
67
78const baseOutputOptions = {
8- sourcemap : true ,
9- name : pkg . jsName
9+ sourcemap : true ,
10+ name : pkg . jsName
1011}
1112
1213const 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
1920export 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]
You can’t perform that action at this time.
0 commit comments