Skip to content

Conversation

whichsteveyp
Copy link

I don't know why it caught my eye, but const isn't available in many scenarios without a transpiler.

I don't know why it caught my eye, but const isn't available in many scenarios without a transpiler.
@mjackson
Copy link
Member

Absolutely agree. But import probably isn't available in those environments either. So we just need to decide to do one or the other.

@whichsteveyp
Copy link
Author

Oh no, I know. import block says its for use with a transpiler, this section says it's for use without one, but uses const which you can't do ;)

@ryanflorence
Copy link
Member

I kinda want to just say "all of our examples use ES2015, if you don't know what that is, please learn it."

@mjackson
Copy link
Member

this section says it's for use without one

Ah, excellent point. I guess we should just use require in that section.

@mjackson
Copy link
Member

Oh geez. It already does. /facepalm

mjackson added a commit that referenced this pull request Sep 14, 2015
@mjackson mjackson merged commit e6941e3 into remix-run:master Sep 14, 2015
@mjackson
Copy link
Member

Thanks, @sprjr !

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants