diff --git a/packages/electrode-archetype-react-component/config/babel/.babelrc b/packages/electrode-archetype-react-component/config/babel/.babelrc index 9c12c2d14..6c04de840 100644 --- a/packages/electrode-archetype-react-component/config/babel/.babelrc +++ b/packages/electrode-archetype-react-component/config/babel/.babelrc @@ -12,5 +12,12 @@ "messagesDir": "./lib/tmp/messages/", "enforceDescriptions": true }] - ] + ], + "env": { + "production": { + "plugins": [ + "babel-plugin-transform-react-constant-elements" + ] + } + } } diff --git a/packages/electrode-archetype-react-component/config/dependencies/check.json b/packages/electrode-archetype-react-component/config/dependencies/check.json index db3ab372c..c557029e3 100644 --- a/packages/electrode-archetype-react-component/config/dependencies/check.json +++ b/packages/electrode-archetype-react-component/config/dependencies/check.json @@ -1,7 +1,7 @@ { "dependencies": { "bluebird": "^2.0.0", - "lodash": "^3.0.0", + "lodash": "^4.5.0", "react": "^0.14.7", "react-dom": "^0.14.7" } diff --git a/packages/electrode-archetype-react-component/config/webpack/webpack.config.js b/packages/electrode-archetype-react-component/config/webpack/webpack.config.js index 8a41b8c3d..2c7f1dfd5 100644 --- a/packages/electrode-archetype-react-component/config/webpack/webpack.config.js +++ b/packages/electrode-archetype-react-component/config/webpack/webpack.config.js @@ -1,6 +1,6 @@ "use strict"; -const compose = require("lodash/function/flowRight"); +const _ = require("lodash"); const path = require("path"); const babelConfig = require("./partial/babel.js"); @@ -32,7 +32,7 @@ const baseConfiguration = { } }; -const createConfig = compose( +const createConfig = _.flowRight( babelConfig(), cssConfig(), defineConfig(), diff --git a/packages/electrode-archetype-react-component/demo-server/app.js b/packages/electrode-archetype-react-component/demo-server/app.js index 68b8f9c08..84e3103ce 100644 --- a/packages/electrode-archetype-react-component/demo-server/app.js +++ b/packages/electrode-archetype-react-component/demo-server/app.js @@ -10,6 +10,8 @@ const routes = require("./client-routes"); const content = document.querySelector(".js-content"); +require("./demo.styl"); + Resolver.render(() => { return React.createElement( Router, diff --git a/packages/electrode-archetype-react-component/demo-server/demo.styl b/packages/electrode-archetype-react-component/demo-server/demo.styl new file mode 100644 index 000000000..0fd71b0c7 --- /dev/null +++ b/packages/electrode-archetype-react-component/demo-server/demo.styl @@ -0,0 +1,2 @@ +@import "~@walmart/lithe-core/main"; +@import "~@walmart/lithe-extras/lib/demo-shared";