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?
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:
Could a babel plugin process
./demotwice and know about?extractOnlyCss?