search

Home  >  Q&A  >  body text

javascript - Does Node.js code running on the server need to be compiled?

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?

迷茫迷茫2728 days ago719

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-06-05 11:15:44

    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!

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-05 11:15:44

    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

    reply
    0
  • Cancelreply