Skip to content

Commit

Permalink
feat: Include the full time zone data as a separate module
Browse files Browse the repository at this point in the history
Other modules may want to import just lookup-convert and then decide what data,
including the full data.
  • Loading branch information
prantlf committed Nov 17, 2018
1 parent e667e0d commit be9ce2a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ export default [
clean()
]
},
{
input: 'src/lookup/data.js',
output: {
file: 'dist/data.js',
format: 'cjs'
},
plugins: [
babel({ exclude: 'node_modules/**' }),
clean()
]
},
{
input: 'src/lookup/data-2012-2022.js',
output: {
Expand Down Expand Up @@ -132,6 +143,19 @@ export default [
uglify()
]
},
{
input: 'src/lookup/data.js',
output: {
file: 'dist/data.umd.js',
format: 'umd',
name: 'timezone-data',
sourcemap: true
},
plugins: [
babel({ exclude: 'node_modules/**' }),
uglify()
]
},
{
input: 'src/lookup/data-2012-2022.js',
output: {
Expand Down

0 comments on commit be9ce2a

Please sign in to comment.