Skip to content

Commit c317a99

Browse files
committed
feature: Migrated to Webpack v5
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent c951a80 commit c317a99

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,12 @@ export default class {
205205

206206
for (const {name, modulePath, configFactory, postProcess} of setups) {
207207
const {configPath, config} = configFactory(compilation, configBase, modulePath, this.options, tempDir)
208-
debug(`${name}: Calling jsdoc-api with entry point ${compiler.options.entry} and configuration ${configPath}`)
209-
debug(`CLI equivalent: DEBUG=* ${path.join(compiler.context, "node_modules", ".bin", "jsdoc")} --verbose --configure ${configPath} ${compiler.options.entry}`)
208+
const entry = compiler.options.entry.main.import[0]
209+
debug(`${name}: Calling jsdoc-api with entry point ${entry} and configuration ${configPath}`)
210+
debug(`CLI equivalent: DEBUG=* ${path.join(compiler.context, "node_modules", ".bin", "jsdoc")} --verbose --configure ${configPath} ${entry}`)
210211
fss.ensureDir(config.opts.destination)
211212
renderSync({
212-
files: compiler.options.entry,
213+
files: entry,
213214
configure: configPath,
214215
})
215216
if (!fss.pathExists(config.opts.destination)) {

0 commit comments

Comments
 (0)