mirror of
https://github.com/iconify/iconify.git
synced 2025-01-08 07:48:29 +00:00
chore(svg-framework): remove buble from build process
This commit is contained in:
parent
7bf2a53ab8
commit
6822667476
@ -75,7 +75,6 @@
|
|||||||
"@iconify/core": "workspace:^",
|
"@iconify/core": "workspace:^",
|
||||||
"@iconify/utils": "workspace:^",
|
"@iconify/utils": "workspace:^",
|
||||||
"@microsoft/api-extractor": "^7.33.7",
|
"@microsoft/api-extractor": "^7.33.7",
|
||||||
"@rollup/plugin-buble": "^1.0.1",
|
|
||||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@rollup/plugin-replace": "^5.0.2",
|
"@rollup/plugin-replace": "^5.0.2",
|
||||||
"@types/jest": "^29.2.4",
|
"@types/jest": "^29.2.4",
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { readFileSync, writeFileSync } from 'fs';
|
import { readFileSync, writeFileSync } from 'fs';
|
||||||
import resolve from '@rollup/plugin-node-resolve';
|
import resolve from '@rollup/plugin-node-resolve';
|
||||||
import buble from '@rollup/plugin-buble';
|
|
||||||
import { terser } from 'rollup-plugin-terser';
|
import { terser } from 'rollup-plugin-terser';
|
||||||
import replace from '@rollup/plugin-replace';
|
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) {
|
if (minify) {
|
||||||
item.plugins.push(terser());
|
item.plugins.push(terser());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user