Skip to content

Commit 57699da

Browse files
Merge pull request #3136 from hkjeffchan/patch-1
Fix PluginMetadataGenerator import
2 parents c2ec8a0 + 4d94551 commit 57699da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/swc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Now if you use CLI plugins, `swc-loader` will not load them automatically. Inste
134134
declare a `generate-metadata.ts` file near the `main.ts` file with the following content:
135135

136136
```ts
137-
import { PluginMetadataGenerator } from '@nestjs/cli/lib/compiler/plugins';
137+
import { PluginMetadataGenerator } from '@nestjs/cli/lib/compiler/plugins/plugin-metadata-generator';
138138
import { ReadonlyVisitor } from '@nestjs/swagger/dist/plugin';
139139

140140
const generator = new PluginMetadataGenerator();

0 commit comments

Comments
 (0)