@@ -6,43 +6,43 @@ import { uglify } from 'rollup-plugin-uglify';
66import pkg from './package.json' ;
77
88export default [
9- // browser-friendly UMD build
10- {
11- input : 'src/strophe.js' ,
12- output : {
13- name : 'strophe' ,
14- file : pkg . browser ,
15- format : 'umd'
16- } ,
17- plugins : [
18- resolve ( ) ,
19- commonjs ( ) ,
9+ // browser-friendly UMD build
10+ {
11+ input : 'src/strophe.js' ,
12+ output : {
13+ name : 'strophe' ,
14+ file : pkg . browser ,
15+ format : 'umd'
16+ } ,
17+ plugins : [
18+ resolve ( ) ,
19+ commonjs ( ) ,
2020 globals ( ) ,
21- babel ( {
22- exclude : [ 'node_modules/**' ] ,
21+ babel ( {
22+ exclude : [ 'node_modules/**' ] ,
2323 presets : [
2424 [ '@babel/preset-env' , {
2525 targets : {
2626 browsers : '>1%'
2727 }
2828 } ]
2929 ]
30- } )
31- ]
32- } ,
33- // Minified UMD build
34- {
35- input : 'src/strophe.js' ,
36- output : {
37- name : 'strophe' ,
38- file : 'dist/strophe.umd.min.js' ,
39- format : 'umd'
40- } ,
41- plugins : [
42- resolve ( ) ,
43- commonjs ( ) ,
30+ } )
31+ ]
32+ } ,
33+ // Minified UMD build
34+ {
35+ input : 'src/strophe.js' ,
36+ output : {
37+ name : 'strophe' ,
38+ file : 'dist/strophe.umd.min.js' ,
39+ format : 'umd'
40+ } ,
41+ plugins : [
42+ resolve ( ) ,
43+ commonjs ( ) ,
4444 globals ( ) ,
45- babel ( {
45+ babel ( {
4646 exclude : [ 'node_modules/**' ] ,
4747 presets : [
4848 [ '@babel/preset-env' , {
@@ -53,24 +53,24 @@ export default [
5353 ]
5454 } ) ,
5555 uglify ( )
56- ]
57- } ,
58- // CommonJS (for Node) and ES module (for bundlers) build.
59- {
60- input : 'src/strophe.js' ,
61- external : [ 'window' , 'md5' ] ,
62- output : [
63- { file : pkg . main , format : 'cjs' } ,
64- { file : pkg . module , format : 'es' }
65- ] ,
66- plugins : [
56+ ]
57+ } ,
58+ // CommonJS (for Node) and ES module (for bundlers) build.
59+ {
60+ input : 'src/strophe.js' ,
61+ external : [ 'window' , 'md5' ] ,
62+ output : [
63+ { file : pkg . main , format : 'cjs' } ,
64+ { file : pkg . module , format : 'es' }
65+ ] ,
66+ plugins : [
6767 globals ( ) ,
68- babel ( {
69- exclude : [ 'node_modules/**' ] ,
68+ babel ( {
69+ exclude : [ 'node_modules/**' ] ,
7070 presets : [
7171 [ '@babel/preset-env' ]
7272 ]
73- } )
74- ]
75- }
73+ } )
74+ ]
75+ }
7676] ;
0 commit comments