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

fails when using moduleName option for transform-runtime #95

@sheerun

Description

@sheerun

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions