Commit 0aa7f1d
authored
fix(nuxt): Fix dynamic import rollup plugin to work with latest nitro (#14243)
With nitro 2.10.X the way we imported the server config file and
dynamically imported the nitro runtime broke. Instead of landing in the
server output entry file, the sdk init and dynamic import landed in the
nitro runtime itself.
Based on
nitrojs/nitro@8b4a408#diff-e58102d2230f95ddeef2662957b48d847a6e891e354cfd0ae6e2e03ce848d1a2R142
we managed to get back to the original solution by using the `\0raw`
prefix for the entry file.
__Note for internal__: This does not play well when using symlinks (like
`yarn link`) to link the sdk into a project. Haven't tested how yalc
behaves, but tarballs work.1 parent 2e5fe94 commit 0aa7f1d
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
155 | | - | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | | - | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
0 commit comments