Skip to content

Commit 6a9e85e

Browse files
committed
add bundle
1 parent a3a380a commit 6a9e85e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"scripts": {
4848
"build": "npm run build:tsdown",
49-
"build:tsdown": "tsdown --config ./tsup.config.ts",
49+
"build:tsdown": "tsdown --config ./tsdown.config.ts",
5050
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
5151
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
5252
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'path';
2-
import { defineConfig } from 'tsup';
2+
import { defineConfig } from 'tsdown';
33
import baseConfig from '../../tsdown.base.config';
44

55
// Redirect import paths for "microsoft-cognitiveservices-speech-sdk(...)"
@@ -48,7 +48,7 @@ const config: typeof baseConfig = {
4848
// Webpack 4: "Can't import the named export 'rewrite' from non EcmaScript module (only default export is available)"
4949
'shiki', // shiki -> @shikijs/core -> @shikijs/engine-javascript -> regex
5050
// Issues related to Webpack 4 when it tries to statically analyze dependencies.
51-
// The way `microsoft-cognitiveservices-speech-sdk` imported the `uuid` package (in their `Guid.js`) is causing esbuild/tsup to proxy require() into __require() for dynamic loading.
51+
// The way `microsoft-cognitiveservices-speech-sdk` imported the `uuid` package (in their `Guid.js`) is causing esbuild/tsdown to proxy require() into __require() for dynamic loading.
5252
// Webpack 4 cannot statically analyze the code and failed with error "Critical dependency: require function is used in a way in which dependencies cannot be statically extracted".
5353
'uuid'
5454
]

0 commit comments

Comments
 (0)