Motivation
The original inspiration / naming convention for Greenwood's raw plugin was based on the webpack loader.
However, a better name for it should / could have been text, and in fact, there's even a TC39 proposal for a text import attributes
import text from "path/to/file.txt" with { type: "text" };
Technical Design
For the time being, we should just deprecate / rename the existing plugin to be called plugin-import-text. Will also need to update the website docs, including a redirect from /docs/plugins/raw/ -> /docs/plugins/text/
Additional Context
Eventually, we can adopt / deprecate this for the TC39 version, just like we were able to do with CSS and JSON - #1275
Also, looks like this is coming to Node very soon!
Motivation
The original inspiration / naming convention for Greenwood's raw plugin was based on the webpack loader.
However, a better name for it should / could have been text, and in fact, there's even a TC39 proposal for a text import attributes
Technical Design
For the time being, we should just deprecate / rename the existing plugin to be called plugin-import-text. Will also need to update the website docs, including a redirect from
/docs/plugins/raw/->/docs/plugins/text/Additional Context
Eventually, we can adopt / deprecate this for the TC39 version, just like we were able to do with CSS and JSON - #1275
Also, looks like this is coming to Node very soon!