Suspected parameter incorrectly passed in @vue/babel-preset-app ? #6423
Unanswered
hejun200613224
asked this question in
Q&A
Replies: 1 comment
-
These polyfills will be injected in entry files by this babel plugin. Exclude these polyfills so that it will be injected once. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the dependent package
@vue/babel-preset-app
, there is a parameterpolyfills
with default value['es.array.iterator', 'es.promise', 'es.object.assign', 'es.promise.finally']
According to the documentation it's a list of core-js polyfills to pre-include when using
useBuiltIns: 'usage'
But actually according to the source code, it was filtered in this line and then pass to
envOptions.exclude
of@babel/preset-env
in this code. The excerpt is as follows.Does this code work in the correct process?
I noticed that if this parameter is configured(even the default values too), the polyfiils will eventually be excluded.
Beta Was this translation helpful? Give feedback.
All reactions