Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Nov 16, 2024
1 parent 6c2e78e commit 53e9b83
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,21 @@ export default defineConfig({
```

For a full example check the [example](https://github.com/webxdc/vite-plugins/tree/main/example) folder.

## Troubleshooting

if you get this error when using vite:

```
✘ [ERROR] Failed to resolve "@webxdc/vite-plugins". This package is ESM only but it was tried to load by `require`.
```

to fix it you need to set in your `package.json`:

```json
{
...
"type": "module",
...
}
```

0 comments on commit 53e9b83

Please sign in to comment.