Skip to content

Commit 156fccd

Browse files
Leopoldthecoderziyoung
authored andcommitted
Chore: optimize entry script (#12192)
1 parent 2bb9fd6 commit 156fccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/bin/build-entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const install = function(Vue, opts = {}) {
2323
locale.use(opts.locale);
2424
locale.i18n(opts.i18n);
2525
26-
components.map(component => {
26+
components.forEach(component => {
2727
Vue.component(component.name, component);
2828
});
2929

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const install = function(Vue, opts = {}) {
145145
locale.use(opts.locale);
146146
locale.i18n(opts.i18n);
147147

148-
components.map(component => {
148+
components.forEach(component => {
149149
Vue.component(component.name, component);
150150
});
151151

0 commit comments

Comments
 (0)