From a746fb84f99888b41d81a3283ea92da385cc9440 Mon Sep 17 00:00:00 2001 From: Reid Mitchell Date: Thu, 4 Jan 2018 11:19:05 -0800 Subject: [PATCH] Replace require with __non_webpack_require__ to avoid module not found warning [#153725024] Signed-off-by: Ming Xiao --- src/react/svg/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/svg/svg.js b/src/react/svg/svg.js index f86a709cb..5c9b4f637 100644 --- a/src/react/svg/svg.js +++ b/src/react/svg/svg.js @@ -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) {} }