From 6822667476942dfe825436fe4ea3e153a9edd748 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sat, 1 Apr 2023 20:40:37 +0300 Subject: [PATCH] chore(svg-framework): remove buble from build process --- components/svg-framework/package.json | 1 - components/svg-framework/rollup.config.mjs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/components/svg-framework/package.json b/components/svg-framework/package.json index a741a95..b963f01 100644 --- a/components/svg-framework/package.json +++ b/components/svg-framework/package.json @@ -75,7 +75,6 @@ "@iconify/core": "workspace:^", "@iconify/utils": "workspace:^", "@microsoft/api-extractor": "^7.33.7", - "@rollup/plugin-buble": "^1.0.1", "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-replace": "^5.0.2", "@types/jest": "^29.2.4", diff --git a/components/svg-framework/rollup.config.mjs b/components/svg-framework/rollup.config.mjs index 5ed886e..581822a 100644 --- a/components/svg-framework/rollup.config.mjs +++ b/components/svg-framework/rollup.config.mjs @@ -1,6 +1,5 @@ import { readFileSync, writeFileSync } from 'fs'; import resolve from '@rollup/plugin-node-resolve'; -import buble from '@rollup/plugin-buble'; import { terser } from 'rollup-plugin-terser'; import replace from '@rollup/plugin-replace'; @@ -121,17 +120,6 @@ names.forEach((name) => { ], }; - if (ext === 'js') { - // Support old browsers only in .js files. - // Other files are for modern browsers that don't need it or - // for bundlers that should handle old browser support themselves. - item.plugins.push( - buble({ - objectAssign: 'Object.assign', - }) - ); - } - if (minify) { item.plugins.push(terser()); }