systemjs / plugin-babel

SystemJS Babel Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toConsumableArray 404

aendra-rininsland opened this issue · comments

I use plugin-babel in ft-interactive/d3-bootloader and it works fantastic, but whenever I try to splat an object into an array (i.e., [...objectConst]), I get the following error:

toConsumableArray 404

Any idea why?

babel-helpers expects to be loaded relative to the path to the babel plugin itself.

This may have something to do with your unpkg config, try configuring it something like:

{
  map: {
    'plugin-babel': 'https://unpkg.com/systemjs-plugin-babel@0.0.25'
  },
  packages: {
    'plugin-babel': {
      main: 'plugin-babel.js'
    }
  }
}

Hi @guybedford, thanks for the response. Adding that packages stanza to my config totally fixed it! Many thanks! 🙌