Guest User

Untitled

a guest
Dec 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ```
  2. $ yarn add --dev babel-cli # to compile our node application
  3. $ yarn add --dev babel-plugin-dynamic-import-webpack # To ensure server webpack config understands the `import` provided by webpack
  4. $ yarn add --dev babel-plugin-transform-object-rest-spread # ability to use the compile the spread operator in Node
  5. $ yarn add --dev babel-preset-env # default preset for babel when compiling
  6. $ yarn add --dev babel-preset-react # ensure that babel understands react from the server
  7. $ yarn add --dev file-loader url-loader webpack-node-externals # webpack specific loaders to be used by the server.
  8. $ yarn add module-alias # Since we are swapping out React for Preact in production, does the job of webpack resolve alias.
  9. ```
Add Comment
Please, Sign In to add comment