🔧 Rollup config improvements
This commit is contained in:
parent
dca8326d90
commit
0ea2c8ef26
53 changed files with 531 additions and 164 deletions
|
@ -10,10 +10,8 @@
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist",
|
"watch": "rollup -c -w",
|
||||||
"nodebuild": "rollup -c -o dist/index.js -f cjs",
|
"build": "rollup -c",
|
||||||
"modulebuild": "rollup -c -o dist/index.mjs -f es",
|
|
||||||
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
|
|
||||||
"publish": "npm run build && npm publish --access public"
|
"publish": "npm run build && npm publish --access public"
|
||||||
},
|
},
|
||||||
"peerDependencies": {},
|
"peerDependencies": {},
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,20 @@ const google =
|
||||||
const facebook =
|
const facebook =
|
||||||
"M22.676 0H1.324C.593 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294H9.689v-3.621h3.129V8.41c0-3.099 1.894-4.785 4.659-4.785 1.325 0 2.464.097 2.796.141v3.24h-1.921c-1.5 0-1.792.721-1.792 1.771v2.311h3.584l-.465 3.63H16.56V24h6.115c.733 0 1.325-.592 1.325-1.324V1.324C24 .593 23.408 0 22.676 0";
|
"M22.676 0H1.324C.593 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294H9.689v-3.621h3.129V8.41c0-3.099 1.894-4.785 4.659-4.785 1.325 0 2.464.097 2.796.141v3.24h-1.921c-1.5 0-1.792.721-1.792 1.771v2.311h3.584l-.465 3.63H16.56V24h6.115c.733 0 1.325-.592 1.325-1.324V1.324C24 .593 23.408 0 22.676 0";
|
||||||
|
|
||||||
|
const note =
|
||||||
|
"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z";
|
||||||
|
const tip =
|
||||||
|
"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z";
|
||||||
|
const warning = "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
gitter,
|
gitter,
|
||||||
github,
|
github,
|
||||||
twitter,
|
twitter,
|
||||||
instagram,
|
instagram,
|
||||||
google,
|
google,
|
||||||
facebook
|
facebook,
|
||||||
|
note,
|
||||||
|
tip,
|
||||||
|
warning
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@ import icons from "./icons";
|
||||||
const Icon = props => {
|
const Icon = props => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
className={props.classes}
|
className={props.className}
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width={props.size}
|
width={props.size}
|
||||||
height={props.size}
|
height={props.size}
|
||||||
|
|
|
@ -55,14 +55,16 @@ const Navbar = props => {
|
||||||
<a {...homeProps}>{props.emblem}</a>
|
<a {...homeProps}>{props.emblem}</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
console.log(props);
|
||||||
return (
|
return (
|
||||||
<header className="navbar">
|
<header className="navbar">
|
||||||
<div>
|
<div>
|
||||||
<div className="only-xs">
|
<div className="only-xs">
|
||||||
{Object.keys(props.navs.mleft).map(key =>
|
{
|
||||||
renderNav(key, props.navs.mleft[key])
|
//Object.keys(props.navs.mleft).map(key =>
|
||||||
)}
|
//renderNav(key, props.navs.mleft[key])
|
||||||
|
//)
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div className="not-xs">
|
<div className="not-xs">
|
||||||
{logo}
|
{logo}
|
||||||
|
@ -78,9 +80,11 @@ const Navbar = props => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="only-xs">
|
<div className="only-xs">
|
||||||
{Object.keys(props.navs.mright).map(key =>
|
{
|
||||||
renderNav(key, props.navs.mright[key])
|
//Object.keys(props.navs.mright).map(key =>
|
||||||
)}
|
//renderNav(key, props.navs.mright[key])
|
||||||
|
// )
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div className="not-xs">
|
<div className="not-xs">
|
||||||
{Object.keys(props.navs.right).map(key =>
|
{Object.keys(props.navs.right).map(key =>
|
||||||
|
@ -103,7 +107,7 @@ Navbar.propTypes = {
|
||||||
|
|
||||||
Navbar.defaultProps = {
|
Navbar.defaultProps = {
|
||||||
home: "https://freesewing.org/",
|
home: "https://freesewing.org/",
|
||||||
navs: { left: [], right: [] },
|
navs: { left: [], right: [], mleft: {}, mright: {} },
|
||||||
logo: <Logo embed color="#e9ecef" />,
|
logo: <Logo embed color="#e9ecef" />,
|
||||||
emblem: <Emblem />
|
emblem: <Emblem />
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import withGist from "../withGist";
|
import withGist from "../withGist";
|
||||||
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles";
|
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles";
|
||||||
import Navbar from "../Navbar";
|
//import Navbar from "../Navbar";
|
||||||
import { defaultGist, storage } from "@freesewing/utils";
|
import { defaultGist, storage } from "@freesewing/utils";
|
||||||
import { dark, light } from "@freesewing/mui-theme";
|
import { dark, light } from "@freesewing/mui-theme";
|
||||||
import withLanguage from "../withLanguage";
|
import withLanguage from "../withLanguage";
|
||||||
|
@ -118,7 +118,9 @@ const Workbench = props => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// FIXME:
|
||||||
|
navs.mleft = navs.left;
|
||||||
|
navs.mright = navs.right;
|
||||||
let main = null;
|
let main = null;
|
||||||
switch (display) {
|
switch (display) {
|
||||||
case "languages":
|
case "languages":
|
||||||
|
@ -182,7 +184,7 @@ const Workbench = props => {
|
||||||
theme === "light" ? "theme-wrapper light" : "theme-wrapper dark"
|
theme === "light" ? "theme-wrapper light" : "theme-wrapper dark"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{display !== "welcome" ? (
|
{display !== "welcome" && false ? (
|
||||||
<Navbar navs={navs} home={() => saveDisplay("welcome")} />
|
<Navbar navs={navs} home={() => saveDisplay("welcome")} />
|
||||||
) : null}
|
) : null}
|
||||||
{main}
|
{main}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
export { default as Blockquote } from "./Blockquote";
|
||||||
export { default as Draft } from "./Draft";
|
export { default as Draft } from "./Draft";
|
||||||
export { default as DraftConfigurator } from "./DraftConfigurator";
|
export { default as DraftConfigurator } from "./DraftConfigurator";
|
||||||
export { default as Emblem } from "./Emblem";
|
export { default as Emblem } from "./Emblem";
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
SKIP_PREFLIGHT_CHECK=true
|
|
@ -4,20 +4,20 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@freesewing/components": "alpha",
|
"@freesewing/components": "beta",
|
||||||
"@freesewing/core": "alpha",
|
"@freesewing/core": "beta",
|
||||||
"@freesewing/css-theme": "alpha",
|
"@freesewing/css-theme": "beta",
|
||||||
"@freesewing/i18n": "alpha",
|
"@freesewing/i18n": "beta",
|
||||||
"@freesewing/models": "alpha",
|
"@freesewing/models": "beta",
|
||||||
"@freesewing/mui-theme": "alpha",
|
"@freesewing/mui-theme": "beta",
|
||||||
"@freesewing/pattern-info": "alpha",
|
"@freesewing/pattern-info": "beta",
|
||||||
"@freesewing/plugin-debug": "alpha",
|
"@freesewing/plugin-debug": "beta",
|
||||||
"@freesewing/plugin-designer": "alpha",
|
"@freesewing/plugin-designer": "beta",
|
||||||
"@freesewing/plugin-i18n": "alpha",
|
"@freesewing/plugin-i18n": "beta",
|
||||||
"@freesewing/plugin-svgattr": "alpha",
|
"@freesewing/plugin-svgattr": "beta",
|
||||||
"@freesewing/plugin-theme": "alpha",
|
"@freesewing/plugin-theme": "beta",
|
||||||
"@freesewing/plugin-validate": "alpha",
|
"@freesewing/plugin-validate": "beta",
|
||||||
"@freesewing/utils": "alpha",
|
"@freesewing/utils": "beta",
|
||||||
"@material-ui/core": "^3.9.3",
|
"@material-ui/core": "^3.9.3",
|
||||||
"@material-ui/icons": "^3.0.2",
|
"@material-ui/icons": "^3.0.2",
|
||||||
"@material-ui/lab": "^3.0.0-alpha.30",
|
"@material-ui/lab": "^3.0.0-alpha.30",
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const darkBg = "#212529";
|
const darkBg = "#212529";
|
||||||
const lightBg = "#f8f9fa";
|
const lightBg = "#ffffff";
|
||||||
const colors = {
|
const colors = {
|
||||||
light: {
|
light: {
|
||||||
primary: darkBg,
|
primary: darkBg,
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,26 @@ import url from "rollup-plugin-url";
|
||||||
import postcss from "rollup-plugin-postcss";
|
import postcss from "rollup-plugin-postcss";
|
||||||
import svgr from "@svgr/rollup";
|
import svgr from "@svgr/rollup";
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import { name, version, description, author, license } from "./package.json";
|
import {
|
||||||
|
name,
|
||||||
|
version,
|
||||||
|
description,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
main,
|
||||||
|
module
|
||||||
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: "dist/index.js",
|
file: main,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: "dist/index.mjs",
|
file: module,
|
||||||
format: "es",
|
format: "es",
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue