improve tsdx build

This commit is contained in:
Robin Malfait
2020-09-17 23:25:16 +02:00
parent 1b896b4992
commit 273c0d9fda
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
const globals = {
vue: 'Vue',
}
module.exports = {
rollup(config) {
for (let key in globals) config.output.globals[key] = globals[key]
return config
},
}
+1 -1
View File
@@ -9,7 +9,7 @@ node="yarn node"
tsdxArgs=()
# Add script name
tsdxArgs+=("build" "--name" "headlessui" "--tsconfig" "./tsconfig.tsdx.json")
tsdxArgs+=("build" "--name" "headlessui" "--format" "cjs,esm,umd" "--tsconfig" "./tsconfig.tsdx.json")
# Passthrough arguments and flags
tsdxArgs+=($@)