1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 04:38:28 +01:00

dependencies fix

This commit is contained in:
codecalm 2022-08-25 18:15:02 +02:00
parent 873f5ce505
commit 5befc6adb0
2 changed files with 4 additions and 27 deletions

View File

@ -86,11 +86,10 @@
"node-sass": "7.0.1", "node-sass": "7.0.1",
"parse-svg-path": "^0.1.2", "parse-svg-path": "^0.1.2",
"release-it": "14.12.5", "release-it": "14.12.5",
"rollup": "2.70.1", "rollup": "2.78.1",
"rollup-plugin-filesize": "9.1.2", "rollup-plugin-filesize": "9.1.2",
"rollup-plugin-peer-deps-external": "2.2.4", "rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",
"rollup-plugin-uglify": "6.0.4",
"svg-outline-stroke": "1.3.1", "svg-outline-stroke": "1.3.1",
"svgo": "^2.8.0" "svgo": "^2.8.0"
}, },

View File

@ -4,7 +4,6 @@ import filesize from "rollup-plugin-filesize";
import babel from "@rollup/plugin-babel"; import babel from "@rollup/plugin-babel";
import external from "rollup-plugin-peer-deps-external"; import external from "rollup-plugin-peer-deps-external";
import { terser } from "rollup-plugin-terser"; import { terser } from "rollup-plugin-terser";
import { uglify } from "rollup-plugin-uglify";
import pkg from "./package.json"; import pkg from "./package.json";
const input = "icons-react/index.js"; const input = "icons-react/index.js";
@ -12,27 +11,6 @@ const input = "icons-react/index.js";
const minifyExtension = (pathToFile) => pathToFile.replace(/\.js$/, ".min.js"); const minifyExtension = (pathToFile) => pathToFile.replace(/\.js$/, ".min.js");
const plugins = [ const plugins = [
babel({
exclude: "node_modules/**",
}),
external(),
resolve(),
commonjs(),
filesize(),
];
const minCjsPlugins = [
babel({
exclude: "node_modules/**",
}),
external(),
resolve(),
commonjs(),
uglify(),
filesize(),
];
const minUmdEsmPlugins = [
babel({ babel({
exclude: "node_modules/**", exclude: "node_modules/**",
}), }),
@ -62,7 +40,7 @@ export default [
format: "cjs", format: "cjs",
sourcemap: true, sourcemap: true,
}, },
plugins: minCjsPlugins, plugins
}, },
// UMD (for browser) // UMD (for browser)
{ {
@ -92,7 +70,7 @@ export default [
"react-dom": "ReactDOM", "react-dom": "ReactDOM",
}, },
}, },
plugins: minUmdEsmPlugins, plugins
}, },
// ESM (for bundlers) // ESM (for bundlers)
{ {
@ -114,6 +92,6 @@ export default [
sourcemap: true, sourcemap: true,
exports: "named", exports: "named",
}, },
plugins: minUmdEsmPlugins, plugins
}, },
]; ];