Skip to content

Babel register in production #4

@pedrocalderon

Description

@pedrocalderon

Hi,

This is more of a doubt than an issue.

I noticed that the nodebase uses a babel-register hook to bootstrap the aplication, inside infra/web.
But for me it seams this is a bad practice. Quating the babel-handbook:

Note that this is not meant for production use. It's considered bad practice to deploy code that gets compiled this way. It is far better to compile ahead of time before deploying. However this works quite well for build scripts or other things that you run locally.

Do you have a build pipeline proposition?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions