Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- $ yarn add --dev babel-cli # to compile our node application
- $ yarn add --dev babel-plugin-dynamic-import-webpack # To ensure server webpack config understands the `import` provided by webpack
- $ yarn add --dev babel-plugin-transform-object-rest-spread # ability to use the compile the spread operator in Node
- $ yarn add --dev babel-preset-env # default preset for babel when compiling
- $ yarn add --dev babel-preset-react # ensure that babel understands react from the server
- $ yarn add --dev file-loader url-loader webpack-node-externals # webpack specific loaders to be used by the server.
- $ yarn add module-alias # Since we are swapping out React for Preact in production, does the job of webpack resolve alias.
- ```
Add Comment
Please, Sign In to add comment