11import nextMDX from "@next/mdx"
2- import withPreconstruct from "@preconstruct/next"
32import remarkEmoji from "remark-emoji"
43import remarkGfm from "remark-gfm"
54import remarkSlug from "remark-slug"
@@ -13,28 +12,26 @@ const withMDX = nextMDX({
1312 } ,
1413} )
1514
16- export default withPreconstruct (
17- withMDX ( {
18- transpilePackages : [
19- "react-native" ,
20- "react-native-safe-area-context" ,
21- "react-native-svg" ,
22- "react-native-web" ,
23- ] ,
24- pageExtensions : [ "js" , "jsx" , "ts" , "tsx" , "md" , "mdx" ] ,
25- reactStrictMode : true ,
26- webpack : ( config ) => ( {
27- ...config ,
28- resolve : {
29- ...config . resolve ,
30- alias : {
31- ...config . resolve . alias ,
32- "react-native" : "react-native-web" ,
33- } ,
34- extensions : [ ".web.js" , ".web.jsx" , ".web.ts" , ".web.tsx" ] . concat (
35- config . resolve . extensions ,
36- ) ,
15+ export default withMDX ( {
16+ transpilePackages : [
17+ "react-native" ,
18+ "react-native-safe-area-context" ,
19+ "react-native-svg" ,
20+ "react-native-web" ,
21+ ] ,
22+ pageExtensions : [ "js" , "jsx" , "ts" , "tsx" , "md" , "mdx" ] ,
23+ reactStrictMode : true ,
24+ webpack : ( config ) => ( {
25+ ...config ,
26+ resolve : {
27+ ...config . resolve ,
28+ alias : {
29+ ...config . resolve . alias ,
30+ "react-native" : "react-native-web" ,
3731 } ,
38- } ) ,
32+ extensions : [ ".web.js" , ".web.jsx" , ".web.ts" , ".web.tsx" ] . concat (
33+ config . resolve . extensions ,
34+ ) ,
35+ } ,
3936 } ) ,
40- )
37+ } )
0 commit comments