GithubHelp home page GithubHelp logo

Comments (4)

rwjblue avatar rwjblue commented on June 29, 2024

By default it is transpiling to CJS modules, you'd need to add one of the modules transpilation plugins if you want something different.

from broccoli-babel-transpiler.

Subaku avatar Subaku commented on June 29, 2024

Thanks for getting back to me. I figured it was just a plugin thing. I see plenty of plugins that transpile to commonjs but none that go from commonjs to es5? Thought this would be a tad easier but apparently not :)

For what it's worth I'm using Broccoli and the broccoli-babel plugin to do this. Was trying to get away from not having to use something like broccoli-watchify.

from broccoli-babel-transpiler.

rwjblue avatar rwjblue commented on June 29, 2024

from commonjs to es5? Thought this would be a tad easier but apparently not :)

The issue here is that it's much less obvious what this means with regards to modules. It really depends on how you plan to run that ES5 code, what that environment has access to, etc.

from broccoli-babel-transpiler.

Subaku avatar Subaku commented on June 29, 2024

Yea I didn't give enough context as to what I'm attempting. Sorry about that. I asked a question with a tad more details on StackOverflow: https://stackoverflow.com/q/58120312/8419587.

Probably should have done that to begin with so I'll close this ticket.

from broccoli-babel-transpiler.

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.