8000 feat: Include the full time zone data as a separate module · prantlf/timezone-support@be9ce2a · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit be9ce2a

Browse files
committed
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.
1 parent e667e0d commit be9ce2a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

rollup.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ export default [
4747
clean()
4848
]
4949
},
50+
{
51+
input: 'src/lookup/data.js',
52+
output: {
53+
file: 'dist/data.js',
54+
format: 'cjs'
55+
},
56+
plugins: [
57+
babel({ exclude: 'node_modules/**' }),
58+
clean()
59+
]
60+
},
5061
{
5162
input: 'src/lookup/data-2012-2022.js',
5263
output: {
@@ -132,6 +143,19 @@ export default [
132143
uglify()
133144
]
134145
},
146+
{
147+
input: 'src/lookup/data.js',
148+
output: {
149+
file: 'dist/data.umd.js',
150+
format: 'umd',
151+
name: 'timezone-data',
152+
sourcemap: true
153+
},
154+
plugins: [
155+
babel({ exclude: 'node_modules/**' }),
156+
uglify()
157+
]
158+
},
135159
{
136160
input: 'src/lookup/data-2012-2022.js',
137161
output: {

0 commit comments

Comments
 (0)
0