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: ```js import { foo } from "./demo?extractOnlyCss" import { bar } from "./demo" ``` Could a babel plugin process `./demo` twice and know about `?extractOnlyCss`?
Activity
satouriko commentedon Oct 12, 2024
Eager to have this. Discuss if we should add the resourceQuery to filename or provide some new option to plugins. I'm open to contribute a pr.