From 44df86f1c50a3dd4b20c3102e396aa186a0546a6 Mon Sep 17 00:00:00 2001 From: Chris Wang Date: Wed, 15 Mar 2017 10:55:52 -0600 Subject: [PATCH] fix(table) resolve pui-css-table dependency --- library/src/pivotal-ui-react/iconography/iconography.js | 2 +- library/src/pivotal-ui-react/svg/svg.js | 2 +- library/src/pivotal-ui/components/tables/index.js | 2 -- styleguide/docs/react/svg.js | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/library/src/pivotal-ui-react/iconography/iconography.js b/library/src/pivotal-ui-react/iconography/iconography.js index 225109664..61087283a 100644 --- a/library/src/pivotal-ui-react/iconography/iconography.js +++ b/library/src/pivotal-ui-react/iconography/iconography.js @@ -12,7 +12,7 @@ class SvgIcon extends Svg { return require(`!!babel-loader!svg-react-loader!pui-css-iconography/svgs/${src}.svg`) } catch (e) { try { - return require(`!!babel-loader!svg-react!../../app/svg/${src}.svg`) + return require(`!!babel-loader!svg-react-loader!../../app/svg/${src}.svg`) } catch (e) {} } } diff --git a/library/src/pivotal-ui-react/svg/svg.js b/library/src/pivotal-ui-react/svg/svg.js index 9da20163b..874b69fef 100644 --- a/library/src/pivotal-ui-react/svg/svg.js +++ b/library/src/pivotal-ui-react/svg/svg.js @@ -19,7 +19,7 @@ export class Svg extends React.Component { svgPathLoader(src) { try { - return require(`!!babel-loader!svg-react!../../app/svg/${src}.svg`); + return require(`!!babel-loader!svg-react-loader!../../app/svg/${src}.svg`); } catch (e) {} } diff --git a/library/src/pivotal-ui/components/tables/index.js b/library/src/pivotal-ui/components/tables/index.js index 6014ef9ea..73a33dc2e 100644 --- a/library/src/pivotal-ui/components/tables/index.js +++ b/library/src/pivotal-ui/components/tables/index.js @@ -1,6 +1,4 @@ try { - require('pui-css-bootstrap'); - require('pui-css-iconography'); require('./tables.css'); } catch(e) { } diff --git a/styleguide/docs/react/svg.js b/styleguide/docs/react/svg.js index a6f9a588c..6ef6a34de 100644 --- a/styleguide/docs/react/svg.js +++ b/styleguide/docs/react/svg.js @@ -48,7 +48,7 @@ import {Svg} from 'pui-react-svg'; class MySvg extends Svg { svgPathLoader(src) { - return require(`!!babel-loader!svg-react!./path/to/svgs/${src}.svg`); + return require(`!!babel-loader!svg-react-loader!./path/to/svgs/${src}.svg`); } } ```