Skip to content

Commit b33b093

Browse files
committed
docs: fix import in transform instructions
1 parent 9e059d9 commit b33b093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default defineNuxtConfig({
119119

120120
```js
121121
import { defineConfig } from 'vite'
122-
import { MagicRegExpTransformPlugin } from 'magic-regexp'
122+
import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
123123

124124
export default defineConfig({
125125
plugins: [MagicRegExpTransformPlugin.vite()],
@@ -146,7 +146,7 @@ export default {
146146

147147
```js
148148
import { defineBuildConfig } from 'unbuild'
149-
import { MagicRegExpTransformPlugin } from 'magic-regexp'
149+
import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
150150

151151
export default defineBuildConfig({
152152
hooks: {

0 commit comments

Comments
 (0)