improve tsdx build
This commit is contained in:
@@ -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
@@ -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+=($@)
|
||||
|
||||
Reference in New Issue
Block a user