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

fails when using moduleName option for transform-runtime #95

Closed
sheerun opened this issue Oct 23, 2016 · 1 comment · Fixed by #109
Closed

fails when using moduleName option for transform-runtime #95

sheerun opened this issue Oct 23, 2016 · 1 comment · Fixed by #109

Comments

@sheerun
Copy link

sheerun commented Oct 23, 2016

react-app is using custom option for transform-runtime, like follows:

moduleName: path.dirname(require.resolve('babel-runtime/package'))

It results in following fragment in transcompiled code:

import _classCallCheck from "/Users/sheerun/Source/Hyper/worker/node_modules/babel-runtime/helpers/classCallCheck";

but you detection code checks for:

import _classCallCheck from "babel-runtime

It makes your plugin fail with following message: An unexpected situation arose. Please raise an issue at https://github.com/rollup/rollup-plugin-babel/issues. Thanks!

@Rich-Harris
Copy link
Contributor

Fixed in 2.7.1 – thanks

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

Successfully merging a pull request may close this issue.

2 participants