08c5383bee
* refactor: core/build and cli/build.js * fix: build * fix: bug * fix: replaceAll to replace * fix: node version check * fix: add require check * fix: esbuild other ext * fix: process json * fix: exlude jsx-runtime * feat: split chunk * fix: minify plugin client bundle * fix: compatibility * fix: support import() * feat: update docs * fix: server deps * feat: demo * fix: remove cjs treeshake * fix: local error * fix: bug * fix: lazy load * fix: rewrites * fix: remove dynamic import function * feat: doc demo * fix: codesanbox vite template * fix: codesanbox demo * fix: hide stackblitz * fix: revert rspack * fix: test bug * fix: delete console * fix: import dayjs locale --------- Co-authored-by: chenos <chenlinxh@gmail.com>
17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
import { defineConfig } from 'tsup';
|
|
import fg from 'fast-glob';
|
|
import path from 'path';
|
|
import { globExcludeFiles } from './src/constant';
|
|
|
|
const entry = fg.globSync(['src/**', ...globExcludeFiles], { cwd: __dirname, absolute: true });
|
|
|
|
export default defineConfig({
|
|
entry,
|
|
outDir: path.join(__dirname, 'lib'),
|
|
splitting: false,
|
|
sourcemap: false,
|
|
clean: true,
|
|
bundle: false,
|
|
skipNodeModulesBundle: true,
|
|
});
|