From be9ce2a3867f281928075a338a7e2407a5205fa1 Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Sat, 17 Nov 2018 12:47:04 +0100 Subject: [PATCH] feat: Include the full time zone data as a separate module Other modules may want to import just lookup-convert and then decide what data, including the full data. --- rollup.config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index 1920452..d704e62 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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: { @@ -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: {