We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b39726e commit 9a125a2Copy full SHA for 9a125a2
packages/@vue/babel-preset-app/index.js
@@ -50,7 +50,14 @@ function getModernTargets (targets) {
50
)
51
52
// use the intersection of modern mode browsers and user defined targets config
53
- return getIntersectionTargets(targets, allModernTargets)
+ const result = getIntersectionTargets(targets, allModernTargets)
54
+
55
+ // webpack 4 uses acorn 6, which does not support newer syntaxes such as optional chaining
56
+ // so we have to add samsung 12 as a target to force transpiling these syntaxes
57
+ // https://github.com/vuejs/vue-cli/issues/6449#issuecomment-828559068
58
+ result.samsung = '12.0.0'
59
60
+ return result
61
}
62
63
function getWCTargets (targets) {
0 commit comments