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:
parent
873f5ce505
commit
5befc6adb0
@ -86,11 +86,10 @@
|
||||
"node-sass": "7.0.1",
|
||||
"parse-svg-path": "^0.1.2",
|
||||
"release-it": "14.12.5",
|
||||
"rollup": "2.70.1",
|
||||
"rollup": "2.78.1",
|
||||
"rollup-plugin-filesize": "9.1.2",
|
||||
"rollup-plugin-peer-deps-external": "2.2.4",
|
||||
"rollup-plugin-terser": "7.0.2",
|
||||
"rollup-plugin-uglify": "6.0.4",
|
||||
"svg-outline-stroke": "1.3.1",
|
||||
"svgo": "^2.8.0"
|
||||
},
|
||||
|
@ -4,7 +4,6 @@ import filesize from "rollup-plugin-filesize";
|
||||
import babel from "@rollup/plugin-babel";
|
||||
import external from "rollup-plugin-peer-deps-external";
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
import { uglify } from "rollup-plugin-uglify";
|
||||
import pkg from "./package.json";
|
||||
|
||||
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 plugins = [
|
||||
babel({
|
||||
exclude: "node_modules/**",
|
||||
}),
|
||||
external(),
|
||||
resolve(),
|
||||
commonjs(),
|
||||
filesize(),
|
||||
];
|
||||
|
||||
const minCjsPlugins = [
|
||||
babel({
|
||||
exclude: "node_modules/**",
|
||||
}),
|
||||
external(),
|
||||
resolve(),
|
||||
commonjs(),
|
||||
uglify(),
|
||||
filesize(),
|
||||
];
|
||||
|
||||
const minUmdEsmPlugins = [
|
||||
babel({
|
||||
exclude: "node_modules/**",
|
||||
}),
|
||||
@ -62,7 +40,7 @@ export default [
|
||||
format: "cjs",
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: minCjsPlugins,
|
||||
plugins
|
||||
},
|
||||
// UMD (for browser)
|
||||
{
|
||||
@ -92,7 +70,7 @@ export default [
|
||||
"react-dom": "ReactDOM",
|
||||
},
|
||||
},
|
||||
plugins: minUmdEsmPlugins,
|
||||
plugins
|
||||
},
|
||||
// ESM (for bundlers)
|
||||
{
|
||||
@ -114,6 +92,6 @@ export default [
|
||||
sourcemap: true,
|
||||
exports: "named",
|
||||
},
|
||||
plugins: minUmdEsmPlugins,
|
||||
plugins
|
||||
},
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user