CMS Development

jonflynnh2o
Participant | Partner
Participant | Partner

ES6 not working in IE11?

SOLVE

We have realized when working in hubspot modules that the ES6 javascript we write does not work with IE11, meaning it is not being compiled down to es5. How do we make this happen with hubspot CMS?

0 Upvotes
2 Accepted solutions
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

ES6 not working in IE11?

SOLVE

Hey @jonflynnh2o 

This is something that you will need to work into your development workflow.

This should be pretty straight forward if you are doing using a local development workflow.

@Anton , any advice?

View solution in original post

0 Upvotes
jonflynnh2o
Solution
Participant | Partner
Participant | Partner

ES6 not working in IE11?

SOLVE

Ok, thanks, so I was thinking using typescript to compile down to es5 and then use 'hs watch' to listen out for when a module file is saved and compiled? Would that work well?

View solution in original post

3 Replies 3
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

ES6 not working in IE11?

SOLVE

Hey @jonflynnh2o 

This is something that you will need to work into your development workflow.

This should be pretty straight forward if you are doing using a local development workflow.

@Anton , any advice?

0 Upvotes
jonflynnh2o
Solution
Participant | Partner
Participant | Partner

ES6 not working in IE11?

SOLVE

Ok, thanks, so I was thinking using typescript to compile down to es5 and then use 'hs watch' to listen out for when a module file is saved and compiled? Would that work well?

dennisedson
HubSpot Product Team
HubSpot Product Team

ES6 not working in IE11?

SOLVE

Sounds like that should do the trick. 

0 Upvotes