We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3441944 commit 4add89cCopy full SHA for 4add89c
README.md
@@ -126,6 +126,22 @@ export default defineConfig({
126
})
127
```
128
129
+### Next.js
130
+
131
+For Next, you will need to ensure you are using `next.config.mjs` or have set `"type": "module"` in your `package.json.
132
133
+```js
134
+import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
135
136
+export default {
137
+ webpack(config) {
138
+ config.plugins = config.plugins || []
139
+ config.plugins.push(MagicRegExpTransformPlugin.webpack())
140
+ return config
141
+ },
142
+}
143
+```
144
145
### unbuild
146
147
```js
0 commit comments