MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / defineEsmCjsLibConfig

Function defineEsmCjsLibConfig

packages/tooling/src/vite.ts:321–335  ·  view source on GitHub ↗
(setup?: (config: UserConfig) => void)

Source from the content-addressed store, hash-verified

319}
320
321export function defineEsmCjsLibConfig(setup?: (config: UserConfig) => void) {
322 return defineEsmLibConfig(config => {
323 const output = config.build!.rollupOptions!.output as OutputOptions[];
324
325 output.push({
326 dir: 'dist/',
327 format: 'cjs',
328 entryFileNames: '[name].cjs',
329 chunkFileNames: '[name].cjs'
330 });
331
332 setup?.(config);
333 return config;
334 });
335}
336
337export function defineEsmLibConfig(setup?: (config: UserConfig) => void) {
338 return defineConfig(() => {

Callers 2

vite.config.tsFile · 0.90
vite.config.tsFile · 0.90

Calls 2

defineEsmLibConfigFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected