Skip to content

Provide a default txt file transformer #9893

@LostLuma

Description

@LostLuma

🙋 feature request

@parcel/config-default should provide a transformer for txt files, mimicking Parcel v1 behavior.

🤔 Expected Behavior

Including one or more txt files in a build should include them in the build output w/o configuration.

😯 Current Behavior

No transformer is supplied in the default config.
Building instead yields @parcel/core: No transformers found for public/test.txt.

💁 Possible Solution

Use @parcel/transformer-raw for txt files in the default config.

🔦 Context

I'm trying to include static text files (such as robots.txt, as well as others) in my project.
In Parcel v1 I did not need to configure Parcel on my own to achieve this, however in Parcel v2 I do.

💻 Examples

Not applicable.

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