11import babel from 'rollup-plugin-babel'
2+ import clean from 'rollup-plugin-clean'
23import { uglify } from 'rollup-plugin-uglify'
34
45export default [
@@ -9,7 +10,8 @@ export default [
910 format : 'cjs'
1011 } ,
1112 plugins : [
12- babel ( { exclude : 'node_modules/**' } )
13+ babel ( { exclude : 'node_modules/**' } ) ,
14+ clean ( )
1315 ]
1416 } ,
1517 {
@@ -19,7 +21,19 @@ export default [
1921 format : 'cjs'
2022 } ,
2123 plugins : [
22- babel ( { exclude : 'node_modules/**' } )
24+ babel ( { exclude : 'node_modules/**' } ) ,
25+ clean ( )
26+ ]
27+ } ,
28+ {
29+ input : 'src/index-1900-2050.js' ,
30+ output : {
31+ file : 'dist/index-1900-2050.js' ,
32+ format : 'cjs'
33+ } ,
34+ plugins : [
35+ babel ( { exclude : 'node_modules/**' } ) ,
36+ clean ( )
2337 ]
2438 } ,
2539 {
@@ -29,7 +43,8 @@ export default [
2943 format : 'cjs'
3044 } ,
3145 plugins : [
32- babel ( { exclude : 'node_modules/**' } )
46+ babel ( { exclude : 'node_modules/**' } ) ,
47+ clean ( )
3348 ]
3449 } ,
3550 {
@@ -39,7 +54,19 @@ export default [
3954 format : 'cjs'
4055 } ,
4156 plugins : [
42- babel ( { exclude : 'node_modules/**' } )
57+ babel ( { exclude : 'node_modules/**' } ) ,
58+ clean ( )
59+ ]
60+ } ,
61+ {
62+ input : 'src/lookup/data-1900-2050.js' ,
63+ output : {
64+ file : 'dist/data-1900-2050.js' ,
65+ format : 'cjs'
66+ } ,
67+ plugins : [
68+ babel ( { exclude : 'node_modules/**' } ) ,
69+ clean ( )
4370 ]
4471 } ,
4572 {
@@ -49,7 +76,8 @@ export default [
4976 format : 'cjs'
5077 } ,
5178 plugins : [
52- babel ( { exclude : 'node_modules/**' } )
79+ babel ( { exclude : 'node_modules/**' } ) ,
80+ clean ( )
5381 ]
5482 } ,
5583 {
@@ -78,6 +106,19 @@ export default [
78106 uglify ( )
79107 ]
80108 } ,
109+ {
110+ input : 'src/index-1900-2050.js' ,
111+ output : {
112+ file : 'dist/index-1900-2050.umd.js' ,
113+ format : 'umd' ,
114+ name : 'timezone-support' ,
115+ sourcemap : true
116+ } ,
117+ plugins : [
118+ babel ( { exclude : 'node_modules/**' } ) ,
119+ uglify ( )
120+ ]
121+ } ,
81122 {
82123 input : 'src/lookup-convert.js' ,
83124 output : {
@@ -104,6 +145,19 @@ export default [
104145 uglify ( )
105146 ]
106147 } ,
148+ {
149+ input : 'src/lookup/data-1900-2050.js' ,
150+ output : {
151+ file : 'dist/data-1900-2050.umd.js' ,
152+ format : 'umd' ,
153+ name : 'timezone-data-1900-2050' ,
154+ sourcemap : true
155+ } ,
156+ plugins : [
157+ babel ( { exclude : 'node_modules/**' } ) ,
158+ uglify ( )
159+ ]
160+ } ,
107161 {
108162 input : 'src/parse-format.js' ,
109163 output : {
0 commit comments