Comments (13)
@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.
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.
upstream PR was merged int esprima#harmony, time to get this fix. I will give it a shot today.
from es6-module-transpiler.
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.
Awesome, @caridy! Let me know if there's anything I can do to help.
from es6-module-transpiler.
blocked by this for now: benjamn/recast#120
from es6-module-transpiler.
recast and ast-types are good now. next stop is eventualbuddha/ast-util#4, @eventualbuddha that is for you... :)
from es6-module-transpiler.
formatters are now updated:
- https://github.com/caridy/es6-module-transpiler-amd-formatter/releases/tag/v0.2.0
- https://github.com/caridy/es6-module-transpiler-system-formatter/releases/tag/v0.2.0
- https://github.com/caridy/es6-module-transpiler-yui-formatter/releases/tag/v0.2.0
from es6-module-transpiler.
Fully realized in v0.9.0.
from es6-module-transpiler.
🏆
from es6-module-transpiler.
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.
@caridy should one of the above links be to the system formatter?
from es6-module-transpiler.
@matthewrobb updated! thanks.
from es6-module-transpiler.
Related Issues (20)
- Add option to not generate source map and append sourceMappingURL HOT 8
- Performance hit from 0.4 -> 0.5+ HOT 13
- add support for `ImportNamespaceSpecifier` HOT 1
- Unnecessary semicolons left around in compiled files HOT 3
- support for classes HOT 1
- Import chains do not preserve bindings across multiple files in CommonJS
- some module syntax fails to parse. HOT 1
- ES6 module transpiler breaks CSP 'unsafe-eval', can't develop for FFOS HOT 3
- RequireJS transpiler HOT 1
- export { foo } from "./bar" does not work
- Module bindings are not propagated across multiple modules when using `import * as` syntax
- Using es6-module-transpiler in conjunction with a classes transpiler HOT 2
- CommonJS formatter, Browserify, ES3, and reserved-word export names HOT 2
- Include another (more up to date) broccoli module
- "missing module import" error message HOT 1
- Break on deconstruction of arrays in function arguments HOT 1
- Multiple exports do not work HOT 1
- Include module in exceptions, for easier debugging. HOT 1
- readFileSync doesn't like reading from directories HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es6-module-transpiler.