Skip to content

rename raw plugin to text #1625

Description

@thescientist13

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!

Metadata

Metadata

Labels

PluginsGreenwood PluginsTypes(cript)Requires type definition or TypeScript related work / documentationbreakingdocumentationGreenwood specific docsfeatureNew feature or request
No fields configured for Feature.

Projects

Status
🔖 Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions