Skip to content

Commit 8f9ec27

Browse files
hanzebanghanzebang.hzb
andauthored
feat: support inline-source-map devtool option (#1965)
Co-authored-by: hanzebang.hzb <hanzebang.hzb@antgroup.com>
1 parent 102f136 commit 8f9ec27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/bundler-mako/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,10 @@ async function getMakoConfig(opts) {
565565
const outputPath = path.resolve(opts.cwd, opts.config.outputPath || 'dist');
566566
const tsConfig = getTsConfig(opts);
567567

568-
const normalizedDevtool = devtool === false ? false : 'source-map';
568+
let normalizedDevtool = 'source-map';
569+
if ([false, 'inline-source-map'].includes(devtool)) {
570+
normalizedDevtool = devtool;
571+
}
569572

570573
let makoCodeSplittingConfig =
571574
codeSplitting === false

0 commit comments

Comments
 (0)