javascript - Does Node.js code running on the server need to be compiled?
迷茫2017-06-05 11:13:44
0
2
746
As mentioned in the title:
Recently, I was developing Node.js server-side code and encountered a problem during the deployment phase. Does my js code need to be packaged and compressed with webpack?
No need, the server code is run locally, there is no need to compress (it is not transmitted at all); webpack is a front-end packaging tool, you are the backend, so you don’t need it!
No need. You can directly execute js files. If the platform version is too low and does not support the new features of es6 and es7, you need to convert it. Babel is recommended
No need, the server code is run locally, there is no need to compress (it is not transmitted at all);
webpack is a front-end packaging tool, you are the backend, so you don’t need it!
No need. You can directly execute js files. If the platform version is too low and does not support the new features of es6 and es7, you need to convert it. Babel is recommended