mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
feat(monorepo): migrate vue packages and apply oxlint refactors
This commit is contained in:
23
vue/primitives/tsdown.config.ts
Normal file
23
vue/primitives/tsdown.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'tsdown';
|
||||
import { sharedConfig } from '@robonen/tsdown';
|
||||
|
||||
export default defineConfig({
|
||||
...sharedConfig,
|
||||
entry: ['src/index.ts'],
|
||||
deps: {
|
||||
neverBundle: ['vue'],
|
||||
alwaysBundle: [/^@robonen\//, '@vue/shared'],
|
||||
},
|
||||
inputOptions: {
|
||||
resolve: {
|
||||
alias: {
|
||||
// We need to alias @vue/shared to its ESM build to avoid issues
|
||||
// with tree-shaking and module resolution in Rolldown
|
||||
'@vue/shared': '@vue/shared/dist/shared.esm-bundler.js',
|
||||
},
|
||||
},
|
||||
},
|
||||
define: {
|
||||
__DEV__: 'false',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user