This commit is contained in:
2025-02-27 00:08:22 +08:00
parent 9eb68a69d7
commit 65ee66d6b4
7 changed files with 56 additions and 36 deletions

View File

@@ -8,11 +8,12 @@ import replace from '@rollup/plugin-replace';
import pkgs from './package.json' with {type: 'json'};
const isDev = process.env.NODE_ENV === 'development';
const input = isDev ? './src/dev.ts' : './src/index.ts';
/**
* @type {import('rollup').RollupOptions}
*/
const config = {
input: './src/index.ts',
input,
output: {
dir: './dist',
entryFileNames: 'app.mjs',