Skip to content

rxjs-es build cannot be complied by Babel #1806

@mitchlloyd

Description

@mitchlloyd

@Blesh As a follow up from https://twitter.com/BenLesh/status/750378713905192960, here is an issue for this workaround that I've seen in a couple of code bases.

RxJS version:

5.0.0-beta.9

Code to reproduce:

Compile rxjs source with Babel.

See existing workarounds as example:

Expected behavior:

Babel compiles rxjs-es source without errors.

Actual behavior:

Babel throws Unexpected Token error similar to this: https://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-2&code=let%20Scheduler%20%3D%20%7B%0A%20%20asap%2C%0A%20%20async%2C%0A%20%20queue%2C%0A%20%20animationFrame%0A%7D%3B

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions