Skip to content

Commit

Permalink
Replace require with __non_webpack_require__ to avoid module not foun…
Browse files Browse the repository at this point in the history
…d warning [#153725024]

Signed-off-by: Ming Xiao <mxiao@pivotal.io>
  • Loading branch information
reidmit authored and pivotal committed Jan 4, 2018
1 parent dabecf2 commit a746fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/svg/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Svg extends React.PureComponent {

svgPathLoader(src) {
try {
return require(`!!babel-loader?{"presets":["react"]}!react-svg-loader?{"svgo":{"plugins":[{"removeUnknownsAndDefaults":false},{"cleanupNumericValues":false},{"removeUselessStrokeAndFill":false}]}}!../../../../app/svgs/${src}.svg`);
return __non_webpack_require__(`!!babel-loader?{"presets":["react"]}!react-svg-loader?{"svgo":{"plugins":[{"removeUnknownsAndDefaults":false},{"cleanupNumericValues":false},{"removeUselessStrokeAndFill":false}]}}!../../../../app/svgs/${src}.svg`);
} catch (e) {}
}

Expand Down

0 comments on commit a746fb8

Please sign in to comment.