react / react/metro

[Feature] Multiple Transformers / Loaders

Open
#443 0 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.6k
Forks
696
Avg merge
8m
Merged PRs (30d)
7

Description

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
At the moment it is not possible to import .css, .scss, .styl or .less Files with metro. You can hack a custom babel-transformer that is doing the magic for you.

What is the expected behavior?
It would be great if metro would accept a list of transformers corresponding to the file extension. Kinda like the loaders of webpack. This would also increase the possibilities with metro as a bundler for the web.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Metro's current transformer behavior and the linked custom babel-transformer example. Compare the requested CSS, SCSS, Stylus, and Less imports with Metro's existing configuration; done means each extension can be assigned its own transformer.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.