GithubHelp home page GithubHelp logo

Comments (9)

guybedford avatar guybedford commented on August 23, 2024

Instantiate is the default because it supports ES6 bindings and circular references, which is a feature integrated into the core of SystemJS.

I know it sounds strange, but the edge case features (circular references) determine the workflow.

That said yes you can compile to AMD or CommonJS. You could use the traceur --dir compile option to compile everything into AMD before using this builder, or we could look at adding it as an option as well.

from builder.

guybedford avatar guybedford commented on August 23, 2024

Is this still a feature you are after? Perhaps have a look at the upcoming bundle-sfx function in the next jspm release to reassess.

from builder.

OliverJAsh avatar OliverJAsh commented on August 23, 2024

@guybedford Does this also cover jspm/jspm-cli#75?

from builder.

guybedford avatar guybedford commented on August 23, 2024

Yes exactly. It's not AMD / CJS transpiling but a self-executing bundling system.

from builder.

outdooricon avatar outdooricon commented on August 23, 2024

@guybedford I think that this hints at a need in the Builder... What I'm encountering is needing to run Traceur for the normal es6 transpiling of other non-module es6 functionality, before running systemjs-builder. It seems odd to have Traceur running in two steps, instead of allowing commands to be passed from the Builder through to Traceur (like allowing an option to trigger the normal es6 transpiling).

from builder.

guybedford avatar guybedford commented on August 23, 2024

@outdooricon can you explain why you need to separately run Traceur for normal es6 transpiling?

from builder.

outdooricon avatar outdooricon commented on August 23, 2024

At one point I had encountered something in es6 that wasn't getting transpiled through the builder. This led me to believe that the builder sidestepped transpiling anything other than modules. However, now switching back to just using the builder, I can't seem to find what that was... So it looks like my use case just disappeared.

from builder.

guybedford avatar guybedford commented on August 23, 2024

I'd be interested to hear what wasn't transpiling. Glad to hear it's working out though.

from builder.

outdooricon avatar outdooricon commented on August 23, 2024

If I find it again, I'll bring it up

from builder.

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.