Skip to content

Commit 3b851a8

Browse files
committed
chore: add notes about upcoming Babel 8 esmodules change [skip ci]
1 parent f782fa3 commit 3b851a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@vue/babel-preset-app/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ const {
1919
isRequired
2020
} = require('@babel/helper-compilation-targets')
2121

22+
// We'll no longer need this logic in Babel 8 as it's the default behavior
23+
// See discussions at:
24+
// https://github.com/babel/rfcs/pull/2#issuecomment-714785228
25+
// https://github.com/babel/babel/pull/12189
2226
function getIntersectionTargets (targets, constraintTargets) {
2327
const intersection = Object.keys(constraintTargets).reduce(
2428
(results, browser) => {

0 commit comments

Comments
 (0)