Skip to content

Commit 4039092

Browse files
committed
Improved default babel config
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent a59dc60 commit 4039092

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,11 @@ export default class {
160160
if (this.options.babel) {
161161
configBase.plugins.unshift(jsdocBabelPath)
162162
const babelConfig = {
163+
caller: {name: "jsdoc-tsd-webpack-plugin"},
163164
cwd: compiler.context,
164165
root: compiler.context,
165166
comments: true,
166-
env: {
167-
NODE_ENV: "development",
168-
},
167+
envName: "development",
169168
...(isObject(this.options.babel) ? this.options.babel : undefined),
170169
}
171170
configBase.babel = babelConfig
@@ -193,6 +192,7 @@ export default class {
193192
for (const {name, modulePath, configFactory} of setups) {
194193
const {configPath, config} = configFactory(compilation, configBase, modulePath, this.options, tempDir)
195194
debug(`${name}: Calling jsdoc-api with entry point ${compiler.options.entry} and configuration ${configPath}`)
195+
debug(`CLI equivalent: DEBUG=* ${path.join(compiler.context, "node_modules", ".bin", "jsdoc")} --verbose --configure ${configPath} ${compiler.options.entry}`)
196196
renderSync({
197197
files: compiler.options.entry,
198198
configure: configPath,

0 commit comments

Comments
 (0)