Skip to content

Export defaults from node-resolve plugin #299

@KubaJastrz

Description

@KubaJastrz
  • Rollup Plugin Name: node-resolve
  • Rollup Plugin Version: 7.1.1

Feature Use Case

I want to be able to add .ts and .tsx extensions when using TypeScript but I have to manually repeat default values which adds up unnecessary manual work. If the defaults were exported, I could reuse them easily.

This would function similarly to const { defaults } = require('jest-config').

I can create a PR if you want.

Feature Proposal

Add export keyword to

const defaults = {

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