Coder Social home page Coder Social logo

Docs: Using Modules about website HOT 4 CLOSED

jamiebuilds avatar jamiebuilds commented on May 11, 2024
Docs: Using Modules

from website.

Comments (4)

benvds avatar benvds commented on May 11, 2024

As commented in babel/babel#843:

I've been busy for over an hour reading the docs and now the issues finding out why I can't compile modules but still can't find the answer.

What I personally gather from the documentation is that I shouldn't need browserify anymore to gather the dependencies. I'm just trying to get the simplest build possible working through the CLI but the only result I see is some formatting.

I'd really like to see the FAQ beefed up and see this thing answered. Also I'd like to see some extremely simple working examples without the use of build systems.

from website.

sebmck avatar sebmck commented on May 11, 2024

No you still need to use browserify. What gave you the assumption that you didn't? Babel turns ES6 module syntax into the format of another module loader. How are you expecting it to work?

from website.

benvds avatar benvds commented on May 11, 2024

Reading the module docs it says:

babel has the ability to transpile ES6 modules to the module system of your choice

"the ability" which means to me it's optional. Because modules are part of es6 i'd expected to be solved through a polyfill which should be automatically loaded for babel-node.

from website.

sebmck avatar sebmck commented on May 11, 2024

@benvds By default it'll transpile ES6 modules into CommonJS which will work just fine in node, browserify and webpack so there's no polyfill required.

from website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.