Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: allow options in Buble playground #181

Closed
trusktr opened this issue Jan 29, 2019 · 2 comments
Closed

feature request: allow options in Buble playground #181

trusktr opened this issue Jan 29, 2019 · 2 comments

Comments

@trusktr
Copy link
Contributor

trusktr commented Jan 29, 2019

There's no options!

I wanted to try stuff, but I get

for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing (3:0)

and there's no way to configure it that I can see.

@trusktr
Copy link
Contributor Author

trusktr commented Jan 29, 2019

I wanted to see what is the output of

const array = [[1,2],[3,4]]

for (const [one, two] of array) {
	foo(one, two)
}

Destructuring isn't working there.

I'm using both Babel and Buble, so I'm trying to figure out in order to make that code work I have to write

const array = [[1,2],[3,4]]

for (const entry of array) {
	const [one, two] = entry
	foo(one, two)
}

@adrianheine
Copy link
Member

I know, I'm sorry. This has already been brought up in bublejs/buble-demo#2.

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

No branches or pull requests

2 participants