Skip to content

Access Resource Query in Plugins? #916

Open
@jantimon

Description

@jantimon

Especially when files contain javascript and css it might be necessary to process the file twice.
One time for javascript and one time for css.

Is there any way to access the webpack resource query inside a babel plugin?

For example here:

import { foo } from "./demo?extractOnlyCss"
import { bar } from "./demo"

Could a babel plugin process ./demo twice and know about ?extractOnlyCss?

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