Skip to content

Commit b29ac00

Browse files
committed
perf(vue-socials): remove useless babel polyfills
1 parent caa9f6e commit b29ac00

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ not Edge < 79
77
iOS >= 10
88
Safari >= 10
99
Android >= 6
10-
Explorer >= 11
10+
Explorer > 11

src/vue-socials-esm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import * as components from '@/components';
99
* Install function executed by Vue.use()
1010
*/
1111
const install: Exclude<Plugin['install'], undefined> = function installVueSocials(app: App) {
12-
Object.entries(components).forEach(([componentName, component]) => {
12+
Object.entries(components).forEach((item) => {
13+
const componentName = item[0];
14+
const component = item[1];
15+
1316
app.component(componentName, component);
1417
});
1518
};

src/vue-socials.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import plugin, * as components from '@/vue-socials-esm';
1010
*/
1111
type NamedExports = Exclude<typeof components, 'default'>;
1212
type ExtendedPlugin = typeof plugin & NamedExports;
13-
Object.entries(components).forEach(([componentName, component]) => {
13+
Object.entries(components).forEach((item) => {
14+
const componentName = item[0];
15+
const component = item[1];
16+
1417
if (componentName !== 'default') {
1518
const key = componentName as Exclude<keyof NamedExports, 'default'>;
1619
const val = component as Exclude<ExtendedPlugin, typeof plugin>;

0 commit comments

Comments
 (0)