Skip to content

Commit

Permalink
refactor: normalize babel syntax transforms with other public CTF lib…
Browse files Browse the repository at this point in the history
…raries (#2176)
  • Loading branch information
axe312ger authored Feb 22, 2024
1 parent 6ba7c6d commit 81a3f9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ const defaultBabelPresetEnvConfig = {
modules: false,
}

// Latest browsers
const browserBabelPresetEnvConfig = Object.assign({}, defaultBabelPresetEnvConfig, {
targets: {
browsers: ['last 2 versions', 'not ie < 13', 'not android < 50'],
},
})
// Latest browsers (via package.json browserslists)
const browserBabelPresetEnvConfig = Object.assign({}, defaultBabelPresetEnvConfig)

// Node
const nodeBabelPresetEnvConfig = Object.assign({}, defaultBabelPresetEnvConfig, {
targets: {
node: '6',
node: '18',
},
})

Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
"engines": {
"node": ">=18"
},
"browserslist": [
">0.3%",
"Chrome >= 75",
"Edge >= 74",
"Firefox >= 73",
"Safari >= 13"
],
"repository": {
"type": "git",
"url": "https://github.com/contentful/contentful-management.js.git"
Expand Down

0 comments on commit 81a3f9b

Please sign in to comment.