Babel: polyfills & browserify #12804
Unanswered
wood-chris
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to get Browserify working with Babel & Grunt. I don't even know where to start with the docs: is this a node, grunt, babel, or browserify issue?
My small website has a single, relatively simple js file. I'd like to support IE11, and it seemed like a good excuse to try and understand Babel & Grunt. I've tried following the docs: https://babeljs.io/docs/en/babel-polyfill
My Gruntfile contains:
without making any changes to main.js, main_babel.js has the following requires added at the start:
which I think seems sensible, but main_prod.js still contains lots (well, 420) of relative
require
s, such as:What am I doing wrong?!
Beta Was this translation helpful? Give feedback.
All reactions