Skip to content

[babel-plugin] - babelHelpers, what is the difference between runtime and bundled? #1076

@advename

Description

@advename
  • Rollup Plugin Name: babel-plugin
  • Rollup Plugin Version: latest

Documentation Is:
https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

The documentation about babelHelpers says to use 'runtime' for libraries - but what I'm missing to understand here is what the difference between "runtime" and "bundled" are and why the first one is recommended for libraries?

My assumptions are that "runtime" is great for libraries in a Node environment. However, what about libraries (e.g. react component library) that can be included directly in a browser? Wouldn't it make more sense here to use bundled then?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions