Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a default txt file transformer #9893

Open
LostLuma opened this issue Aug 3, 2024 · 0 comments · May be fixed by #9899
Open

Provide a default txt file transformer #9893

LostLuma opened this issue Aug 3, 2024 · 0 comments · May be fixed by #9899

Comments

@LostLuma
Copy link

LostLuma commented Aug 3, 2024

🙋 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.

@LostLuma LostLuma linked a pull request Aug 7, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant