Coder Social home page Coder Social logo

Comments (13)

caridy avatar caridy commented on September 25, 2024

@eventualbuddha I have been assessing the changes in transpiler, and they are not trivial :/, mostly because now we can combine things, like import foo, * as bar, {baz as xyz} from "foo", and also export default function () {} vs export default function foo () {}, this means we can't not longer differentiate the type of import or export declaration by just looking at the declaration itself, we need to have a process to walk each piece individually, and apply the desire transformation.

The good news is that now, for exports, the identifiers to be declared locally are already extracted into identifiers array, which is the exact same that happens for imports.

from es6-module-transpiler.

eventualbuddha avatar eventualbuddha commented on September 25, 2024

Well, I'm not averse to making the internal changes necessary. I don't believe there should be much in the way of external breakage even if we restructure a bunch of the bookkeeping classes.

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

upstream PR was merged int esprima#harmony, time to get this fix. I will give it a shot today.

from es6-module-transpiler.

matthewrobb avatar matthewrobb commented on September 25, 2024

Woot!
On Oct 8, 2014 9:41 AM, "Caridy Patiño" [email protected] wrote:

upstream PR was merged int esprima#harmony, time to get this fix. I will
give it a shoot today.


Reply to this email directly or view it on GitHub
#162 (comment)
.

from es6-module-transpiler.

eventualbuddha avatar eventualbuddha commented on September 25, 2024

Awesome, @caridy! Let me know if there's anything I can do to help.

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

blocked by this for now: benjamn/recast#120

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

recast and ast-types are good now. next stop is eventualbuddha/ast-util#4, @eventualbuddha that is for you... :)

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

formatters are now updated:

from es6-module-transpiler.

eventualbuddha avatar eventualbuddha commented on September 25, 2024

Fully realized in v0.9.0.

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

🏆

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

https://github.com/caridy/es6-module-transpiler-amd-formatter/releases/tag/v0.2.2
https://github.com/caridy/es6-module-transpiler-system-formatter/releases/tag/v0.2.1 (updated)
https://github.com/caridy/es6-module-transpiler-yui-formatter/releases/tag/v0.2.1

I think this is it.

from es6-module-transpiler.

matthewrobb avatar matthewrobb commented on September 25, 2024

@caridy should one of the above links be to the system formatter?

from es6-module-transpiler.

caridy avatar caridy commented on September 25, 2024

@matthewrobb updated! thanks.

from es6-module-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.