Comments (5)
Anytime :) I just went through this exercise not too long ago... was a bit overwhelmed by everything. There's certainly a place for a well put-together guide on getting started with a modern JS stack, or rather, putting one together from scratch.
from js-stack-from-scratch.
I didn't know that, thanks for the tip! Will update the tutorial asap. I found that it's also possible with gulpfile.babel.js
, pretty neat :)
from js-stack-from-scratch.
@saitonakamura This is why I use Babel on the server as well. Every import
in this tutorial ends up as a require
in the lib
directory, even server code.
from js-stack-from-scratch.
Fixed! Thank you very much :)
from js-stack-from-scratch.
ES6 is awesome but using import
can cause problems.
For example this file is executed by node, like node --harmony server.js
and I'm using it to enable hot reloading.
But I can't use import
in here because node harmony
mode does not support import
and the main cause of this that there is problems with implementation import
in V8, see this thread.
So I'm still using require
in code that executes on server (such as using js wrappers for webpack
, webpack-dev-middleware
, webpack-hot-middleware
) and recommend you to do so.
AFAIK you can use export
, but I find it violating the POLA to use export
and not to use import
in one file.
Other cool features like const
, let
are available using --harmony
flag by the way.
from js-stack-from-scratch.
Related Issues (20)
- Feature suggestion: Form inputs HOT 3
- I got issues after adding flow HOT 9
- last step in section 3 fails on Windows (following instruction on github web page) HOT 1
- Would be cool to add a chapter of service worker and offline first approach HOT 1
- how to work with mongodb to implement user registration and login? HOT 1
- Issue with react-jss HOT 2
- Error setting up ESLint HOT 1
- Flow error in chapter 04. Flow error: (This type is incompatible with the expected param type of Element) HOT 1
- jest's collectCoverageFrom
- .jsx instead of .js HOT 2
- 2|server | Error: Cannot find module 'E:\workspaces\JsStackFromScratch\node_mo dules\[email protected]@pm2\lib\ProcessContainerFork.js' HOT 2
- Add AWS Elastic Beanstalk instructions pass production build HOT 1
- V3 Roadmap HOT 12
- Issue with npm start command instead of yarn dev:start HOT 1
- jest : SecurityError: localStorage is not available for opaque origins HOT 1
- Lesson 4 - React - App Crash waiting for file changes. HOT 2
- Add instructions to deploy in DigitalOcean
- Out of date HOT 1
- Installing ESLint on windows
- Js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-stack-from-scratch.