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

Setting runtimeHelpers leads to error with 5.0.0 #340

Closed
lazka opened this issue Dec 14, 2019 · 2 comments
Closed

Setting runtimeHelpers leads to error with 5.0.0 #340

lazka opened this issue Dec 14, 2019 · 2 comments

Comments

@lazka
Copy link

lazka commented Dec 14, 2019

Using rollup-plugin-babel@next, the following config:

babel({
        exclude: 'node_modules/**',
        runtimeHelpers: true,
        babelrc: false,
        presets: [['@babel/env', {
        modules: false,
        targets: {
                "edge": "17"
        }
        }]],
        plugins: [
        [
                '@babel/plugin-transform-runtime',
                {
                corejs: 3,
                useESModules: true
                }
        ]
        ]
})

results in

(plugin babel) ReferenceError: Unknown option: .runtimeHelpers. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

The previous version worked.

@Andarist
Copy link
Member

Please use babelHelpers: 'runtime' instead - you should get a warning in a console about it.

@lazka
Copy link
Author

lazka commented Dec 15, 2019

Ah, thanks, it was way up in the logs before the error. Feel free to close this :)

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