Skip to content

Commit db63134

Browse files
Merge pull request #3247 from CatsMiaow/swagger
docs(openapi): add esm compatible option for swagger plugin
2 parents aa23855 + 954429c commit db63134

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/openapi/cli-plugin.md

+6
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export interface PluginOptions {
173173
controllerKeyOfComment?: string;
174174
introspectComments?: boolean;
175175
skipAutoHttpCode?: boolean;
176+
esmCompatible?: boolean;
176177
}
177178
```
178179

@@ -217,6 +218,11 @@ export interface PluginOptions {
217218
<td><code>false</code></td>
218219
<td>Disables the automatic addition of <code>@HttpCode()</code> in controllers</td>
219220
</tr>
221+
<tr>
222+
<td><code>esmCompatible</code></td>
223+
<td><code>false</code></td>
224+
<td>If set to true, resolves syntax errors encountered when using ESM (<code>&#123; "type": "module" &#125;</code>).</td>
225+
</tr>
220226
</table>
221227

222228
Make sure to delete the `/dist` folder and rebuild your application whenever plugin options are updated.

0 commit comments

Comments
 (0)