I’ve been updating Webpack to work with Typescript on my local machine here with the newest version of Sage 9 and I noticed I needed to add Babel to transform Es6 to Es5. I was thinking it might be best to just add it in by default…
Anyone else run into this issue when using Es6 or typescript?
We removed Babel in favor of Bublé. Obviously Babel can do more, but Bublé itself is more performant and its output is much more readable. (I know nothing about Bublé vs Babel output performance, to be clear. The difference is probably negligible.)
Ok I see that makes sense. I guess my question now is when I changed webpack to look at a TS file instead of a JS file, it didn’t transform it to es5? I had to add another loader to target the ts files.
Should I have done this another way? I’m new to webpack so still learning, but just happy I got it working
I only mention this because we’ve just burned 12 hrs or so troubleshooting why Foundation 6 responsive menu don’t render correctly after yarn run start but do render after yarn build. It took is a while figure out the build was working correctly and then we found we weren’t the first Sage 9 users to encounter this.