Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Add ES6 Support #18

Open
aubreypwd opened this issue Feb 4, 2019 · 1 comment
Open

Add ES6 Support #18

aubreypwd opened this issue Feb 4, 2019 · 1 comment

Comments

@aubreypwd
Copy link
Owner

aubreypwd commented Feb 4, 2019

Writing ES6 takes a great deal of work to get it to work in ES5 browers, etc. I know there are ways to write ES6 code and transpile it down to ES5 for other browsers. Let's make it really easy to write ES6 yet enqueue ES5 versions of it.

@aubreypwd aubreypwd added this to the 2.1.0 milestone Feb 4, 2019
@aubreypwd aubreypwd added the JS label Feb 4, 2019
@aubreypwd aubreypwd changed the title Make writing ES6 better Add ES6 Support Feb 4, 2019
@aubreypwd
Copy link
Owner Author

@efuller getting you involved here as promised!

So here are my initial thoughts:

I want whatever this is to simply make an ES5 version of my ES6 script e.g. I make services/my-service/assets/js/my-script.js and it's written in ES6. The thing we build finds that ES6 script (automagically, maybe it has an @es6 tag in the filedoc maybe there's a thing out there that can detect an ES6 script?) and makes a services/my-service/assets/js/es5/my-script.js file I can enqueue safely.

I'm thinking that simple. That way I can write in whatever I want and our tool here will just compile es5 versions of the code for us to use. Open to discussing this further.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant