Trying to use the raw-loader plugin only for specific file imports #10272
-
SummaryHello, trying to move from webpack to turbopack for a documentation website running Next.js. We are using raw-loading a lot to embbed generated css files to our documentation but also to add them to the context of our sandbox components based on sandpack. We used to set the
Following the documentation, all I could find is setting additional rules in the next configuration so that files matching a certain pattern can be handled by a given loader :
While this is working fine, this prevents to ever use two different kind of loaders for a given file : either we are raw-loading it or not, which is unfortunately an issue for us. I am looking for any kind of suggestion, or advise from people who went through a similar scenario during a migration. Many thanks ! Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, this repository is for Turborepo. The Turbopack team currently operates in https://github.com/vercel/next.js. |
Beta Was this translation helpful? Give feedback.
Hi, this repository is for Turborepo. The Turbopack team currently operates in https://github.com/vercel/next.js.