Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

“It looks like your Babel configuration specifies a module transformer” when using transform-decorators-legacy #18

Closed
flying-sheep opened this issue Dec 28, 2015 · 3 comments

Comments

@flying-sheep
Copy link

but i only see in its package.json

"dependencies": {
  "babel-plugin-syntax-decorators": "^6.1.18",
  "babel-runtime": "^6.2.0",
  "babel-template": "^6.3.0"
},

no idea why that error appears

@Rich-Harris
Copy link
Contributor

Bizarre. Turns out transform-decorators-legacy, for reasons best known to itself, translates export default Foo to export { Foo as default }. The pre-flight check that ensures modules aren't transformed is now aware of that possibility. #20 fixes it.

@Rich-Harris
Copy link
Contributor

Released as 2.3.0

@flying-sheep
Copy link
Author

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants