Skip to content

Commit

Permalink
chore: add redirect bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Sep 30, 2024
1 parent a9d9622 commit 36e99ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/tools/plugin-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
},
Expand Down
20 changes: 20 additions & 0 deletions plugins/tools/plugin-redirect/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { rollupBundle } from '../../../scripts/rollup.js'

export default [
...rollupBundle('cli/index', {
external: ['cac'],
}),
...rollupBundle('node/index', {
dtsExternal: ['@vuepress/helper/shared'],
}),
...rollupBundle(
{
base: 'client',
files: ['components/RedirectModal', 'config', 'index'],
},
{
external: ['@vuepress/plugin-redirect/modal'],
dtsExternal: ['@vuepress/helper/shared'],
},
),
]

0 comments on commit 36e99ab

Please sign in to comment.