jlengstorf/learn-rollup

It looks like your Babel configuration specifies a module transformer.

Closed this issue · 3 comments

thgh commented

Got this error:

projects\learn-rollup>npm run dev
Error transforming projects\src\scripts\main.js with 'babel' plugin: It looks like your Babel configuration specifies a module transformer. Please disable it. If you're using the "es2015" preset, consider using "es2015-rollup" instead. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information

That page suggests this .babelrc

{
  "presets": [
    [
      "es2015",
      {
        "modules": false
      }
    ]
  ],
  "plugins": [
    "external-helpers"
  ]
}

Even with that config, I couldn't get modules & es6 working.

Hey, @thgh — there was a discussion around this in #2, and it looks like you're using the same config that solved the problem for most people.

Can you share the error message you're getting, along with the repo so I can check it out?

Thanks!

Note: I use the window operating system. and node.js version is v6.2.0 and npm version is v3.8.9 . @jlengstorf

@thgh Did you get this worked out? I'm going to close this as a duplicate of #2, but if I'm wrong let me know and we'all get it sorted.