Skip to content

Switch from ES6 to ES5 to ensure compatability.#4

Open
egilll wants to merge 1 commit intodotcypress:developfrom
egilll:patch-1
Open

Switch from ES6 to ES5 to ensure compatability.#4
egilll wants to merge 1 commit intodotcypress:developfrom
egilll:patch-1

Conversation

@egilll
Copy link
Copy Markdown

@egilll egilll commented Aug 12, 2018

Runes is not compiled with Babel, which leads to some difficulty when depending on it.

It is currently not possible to use runes in projects using create-react-app.

The only ES6 features being used by runes are const and let. I therefore suggest that we switch to ES5, or add a compile step.

**Runes** is not compiled with Babel, which leads to some difficulty when depending on it.

It is currently [not possible](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify) to use `runes` in projects using `create-react-app`.

The only ES6 features being used by **runes** are `const` and `let`. I therefore suggest that we switch to ES5, or add a compile step.
@quannt
Copy link
Copy Markdown

quannt commented Nov 29, 2018

I second this, have to fork the repo into my local and add babel to compile down to es5.

@danielcardoso5
Copy link
Copy Markdown

This is crucial for modern build processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants