Skip to content

Commit

Permalink
Update rollup for newer targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Oct 5, 2023
1 parent 8cd6651 commit f8c3e68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/locales",
"version": "4.0.2",
"version": "4.0.3",
"description": "Translations for Hebcal events in multiple languages",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
12 changes: 7 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ module.exports = [
{file: pkg.main, format: 'cjs', name: pkg.name, banner},
],
plugins: [
json({compact: true}),
json({compact: true, preferConst: true}),
babel({
babelHelpers: 'bundled',
presets: [
['@babel/preset-env', {
modules: false,
targets: {
node: '12.22.0',
node: '16.0.0',
},
}],
],
Expand All @@ -41,7 +41,7 @@ module.exports = [
['@babel/preset-env', {
modules: false,
targets: {
node: '12.22.0',
node: '16.0.0',
},
}],
],
Expand Down Expand Up @@ -73,15 +73,17 @@ module.exports = [
},
],
plugins: [
json({compact: true}),
json({compact: true, preferConst: true}),
babel({
babelHelpers: 'bundled',
presets: [
['@babel/preset-env', {
modules: false,
targets: {
chrome: '103',
safari: '13.1',
firefox: '91',
edge: '84',
safari: '15.6',
},
useBuiltIns: 'usage',
corejs: 3,
Expand Down

0 comments on commit f8c3e68

Please sign in to comment.