Skip to content

Commit d5397aa

Browse files
committed
Fix UMD config to match existing behavior
- Removed "externals" so that all libs get bundled in - Fixed dev UMD output file name
1 parent 183e289 commit d5397aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tsdx.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = {
1515
config.output.file = join(__dirname, pkg.main)
1616
break
1717
case 'umd':
18-
console.log({ plugins: config.plugins})
18+
delete config.external
19+
//console.log(config)
1920
config.output.indent = false
2021
config.plugins.push(
2122
replace({
@@ -31,6 +32,11 @@ module.exports = {
3132
)
3233
if (env === 'production') {
3334
config.output.file = join(__dirname, pkg.unpkg)
35+
} else {
36+
config.output.file = config.output.file.replace(
37+
'umd.development',
38+
'umd'
39+
)
3440
}
3541
break
3642
}

0 commit comments

Comments
 (0)