Skip to content

node-resolve plugin no longer supports "default" require import #402

@alexlafroscia

Description

@alexlafroscia
  • Rollup Plugin Name: node-resolve
  • Rollup Plugin Version: v8.0.0
  • Rollup Version: 1.25.2 (through broccoli-rollup)
  • Operating System (or Browser): macOS
  • Node Version: 12.16.2

How Do We Reproduce?

https://repl.it/@alexlafroscia1/UnsightlyAliceblueExternalcommand

Expected Behavior

The plugin function would be accessible by requiring @rollup/plugin-node-resolve

Actual Behavior

The package no longer has a "default export" of the plugin function when importing through Node rather than ESM. While configuring Rollup directly supports the ESM style, configuring Rollup i
indirectly (like in our case, through the Broccoli wrapper plugin) does not.

Since the default ESM export is a function, I would expect the same to be true when requiring it in Node.

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