Build helper.
Basic usage
Basic usage
const buildHelper = new BuildHelper(); const bundleOptions = { minify: true, externals: ['package', 'jsr:*', 'npm:*', 'https:*', './node_modules/*'], }; const code = await buildHelper.bundle('src/main.ts', bundleOptions); await buildHelper.bundleFile('src/main.ts', 'dist/main.bundle.js', bundleOptions); await buildHelper.export('public', ['src/index.html', 'src/assets']);
bundle(entryPoint: string,options?: Partial<BuildHelperBundleOptions>,): Promise<string>
Bundles the scripts into a single package.
bundleFile(): Promise<void>
Bundles the scripts into a single package and saves it as a file.