Skip to content

Commit

Permalink
specify two semvers
Browse files Browse the repository at this point in the history
  • Loading branch information
redwoodjsbot committed Jan 25, 2022
1 parent c3cf1bc commit d3d8eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const packageJSON = require(path.join(__dirname, 'package.json'))
// RedwoodJS targets Node.js 14.x because it's the default version for Netlify and Vercel's functions:
// - https://docs.netlify.com/functions/build-with-javascript/#runtime-settings
// - https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version
const TARGETS_NODE = '^14.18.3'
const TARGETS_NODE = '14.18'

// Run `npx browserslist "defaults, not IE 11, not IE_Mob 11"` to see a list
// of target browsers.
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/src/build/babel/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
// RedwoodJS targets Node.js 14.x because it's the default version for Netlify and Vercel's functions:
// - https://docs.netlify.com/functions/build-with-javascript/#runtime-settings
// - https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version
const TARGETS_NODE = '^14.18.3'
const TARGETS_NODE = '14.18'
// Warning! Use the minor core-js version: "corejs: '3.6'", instead of "corejs: 3",
// because we want to include the features added in the minor version.
// https://github.com/zloirock/core-js/blob/master/README.md#babelpreset-env
Expand Down

0 comments on commit d3d8eba

Please sign in to comment.