@@ -40,7 +40,7 @@ describe('babel plugin (next-ssg-transform)', () => {
40
40
}
41
41
` )
42
42
expect ( output ) . toMatchInlineSnapshot (
43
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
43
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
44
44
)
45
45
} )
46
46
@@ -53,7 +53,7 @@ describe('babel plugin (next-ssg-transform)', () => {
53
53
}
54
54
` )
55
55
expect ( output ) . toMatchInlineSnapshot (
56
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
56
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
57
57
)
58
58
} )
59
59
@@ -66,7 +66,7 @@ describe('babel plugin (next-ssg-transform)', () => {
66
66
}
67
67
` )
68
68
expect ( output ) . toMatchInlineSnapshot (
69
- `"export{foo,bar as baz}from'.';const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
69
+ `"export{foo,bar as baz}from'.';const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
70
70
)
71
71
} )
72
72
@@ -86,7 +86,7 @@ describe('babel plugin (next-ssg-transform)', () => {
86
86
` )
87
87
88
88
expect ( output ) . toMatchInlineSnapshot (
89
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
89
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
90
90
)
91
91
} )
92
92
@@ -106,7 +106,7 @@ describe('babel plugin (next-ssg-transform)', () => {
106
106
` )
107
107
108
108
expect ( output ) . toMatchInlineSnapshot (
109
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
109
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
110
110
)
111
111
} )
112
112
@@ -124,7 +124,7 @@ describe('babel plugin (next-ssg-transform)', () => {
124
124
` )
125
125
126
126
expect ( output ) . toMatchInlineSnapshot (
127
- `"export function Noop(){}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
127
+ `"export function Noop(){}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
128
128
)
129
129
} )
130
130
@@ -144,7 +144,7 @@ describe('babel plugin (next-ssg-transform)', () => {
144
144
` )
145
145
146
146
expect ( output ) . toMatchInlineSnapshot (
147
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
147
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
148
148
)
149
149
} )
150
150
@@ -164,7 +164,7 @@ describe('babel plugin (next-ssg-transform)', () => {
164
164
` )
165
165
166
166
expect ( output ) . toMatchInlineSnapshot (
167
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
167
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
168
168
)
169
169
} )
170
170
@@ -184,7 +184,7 @@ describe('babel plugin (next-ssg-transform)', () => {
184
184
` )
185
185
186
186
expect ( output ) . toMatchInlineSnapshot (
187
- `"export const foo=2;const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
187
+ `"export const foo=2;const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
188
188
)
189
189
} )
190
190
@@ -202,7 +202,7 @@ describe('babel plugin (next-ssg-transform)', () => {
202
202
` )
203
203
204
204
expect ( output ) . toMatchInlineSnapshot (
205
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
205
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
206
206
)
207
207
} )
208
208
@@ -220,7 +220,7 @@ describe('babel plugin (next-ssg-transform)', () => {
220
220
` )
221
221
222
222
expect ( output ) . toMatchInlineSnapshot (
223
- `"const a=2;const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
223
+ `"const a=2;const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
224
224
)
225
225
} )
226
226
@@ -238,7 +238,7 @@ describe('babel plugin (next-ssg-transform)', () => {
238
238
` )
239
239
240
240
expect ( output ) . toMatchInlineSnapshot (
241
- `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
241
+ `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
242
242
)
243
243
} )
244
244
@@ -258,7 +258,7 @@ describe('babel plugin (next-ssg-transform)', () => {
258
258
` )
259
259
260
260
expect ( output ) . toMatchInlineSnapshot (
261
- `"export class MyClass{}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
261
+ `"export class MyClass{}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
262
262
)
263
263
} )
264
264
@@ -305,7 +305,7 @@ describe('babel plugin (next-ssg-transform)', () => {
305
305
` )
306
306
307
307
expect ( output ) . toMatchInlineSnapshot (
308
- `"import keep_me from'hello';import{keep_me2}from'hello2';import*as keep_me3 from'hello3';import{but_not_me}from'bar';var leave_me_alone=1;function dont_bug_me_either(){}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR =true export default __NEXT_COMP;"`
308
+ `"import keep_me from'hello';import{keep_me2}from'hello2';import*as keep_me3 from'hello3';import{but_not_me}from'bar';var leave_me_alone=1;function dont_bug_me_either(){}const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__N_SSG =true export default __NEXT_COMP;"`
309
309
)
310
310
} )
311
311
0 commit comments