Skip to content

Commit

Permalink
feat: speed build corrections final
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarBenavides777 committed Mar 1, 2021
1 parent d687ae4 commit fd7ab7f
Show file tree
Hide file tree
Showing 6 changed files with 1,459 additions and 1,592 deletions.
32 changes: 4 additions & 28 deletions conf/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import svg from "rollup-plugin-svg";
import json from "@rollup/plugin-json";
import copy from "rollup-plugin-copy";

import react from "react";
import reactDom from "react-dom";
import PropTypes from "prop-types";

export const buildPath = "lib";

export default [
Expand All @@ -30,14 +26,7 @@ export default [
}),
svg(),
commonjs({
include: "node_modules/**",
namedExports: {
react: Object.keys(react),
"react-dom": Object.keys(reactDom),
"react-responsive": ["useMediaQuery"],
"prop-types": Object.keys(PropTypes),
"node_modules/react-is/index.js": ["isValidElementType"]
}
include: "node_modules/**"
}),
copy({
targets: [{ src: "src/styles", dest: "lib" }]
Expand All @@ -46,6 +35,7 @@ export default [
external: [
"react",
"react-dom",
"react-router",
"react-router-dom",
"prop-types",
"formik",
Expand All @@ -70,14 +60,7 @@ export default [
}),
svg(),
commonjs({
include: "node_modules/**",
namedExports: {
react: Object.keys(react),
"react-dom": Object.keys(reactDom),
"react-responsive": ["useMediaQuery"],
"prop-types": Object.keys(PropTypes),
"node_modules/react-is/index.js": ["isValidElementType"]
}
include: "node_modules/**"
})
],
external: [
Expand All @@ -99,7 +82,7 @@ export default [
// },
// plugins: [
// json(),
// resolve(),
// nodeResolve(),
// scss({
// output: `${buildPath}/widgets/index.css`,
// }),
Expand All @@ -109,13 +92,6 @@ export default [
// svg(),
// commonjs({
// include: 'node_modules/**',
// namedExports: {
// react: Object.keys(react),
// 'react-dom': Object.keys(reactDom),
// 'react-responsive': ['useMediaQuery'],
// 'prop-types': Object.keys(PropTypes),
// 'node_modules/react-is/index.js': ['isValidElementType'],
// },
// })
// ],
// external: [
Expand Down
Loading

0 comments on commit fd7ab7f

Please sign in to comment.