Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 30, 2023
1 parent 1f71bac commit f8ce71e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Unit Test](https://github.com/sxzz/unplugin-raw/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/unplugin-raw/actions/workflows/unit-test.yml)

Transform file to a default-export string. It will be transformed to JavaScript, then a string.

## Installation

```bash
Expand Down Expand Up @@ -63,6 +65,14 @@ module.exports = {
<br></details> -->

## Usage

```ts
import text from './ts.ts?raw'
import text2 from './js.js?raw'
import text3 from './jsx.jsx?raw'
```

## Sponsors

<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "unplugin-raw",
"version": "0.0.0",
"packageManager": "pnpm@8.11.0",
"description": "Import raw content",
"description": "Transform file to a default-export string.",
"keywords": [
"unplugin",
"rollup",
Expand Down

0 comments on commit f8ce71e

Please sign in to comment.