Fork of https://github.com/CCherry07/alien-deepsignals ported to alien-signals v2 with support for per-value modification tracking.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
alien-deepsignals-fork/farm.config.ts

36 lines
849 B

import { defineConfig } from '@farmfe/core';
import farmDtsPlugin from '@farmfe/js-plugin-dts';
const format = (process.env.FARM_FORMAT as 'esm' | 'cjs') || 'esm';
const ext = format === 'esm' ? 'mjs' : 'cjs';
export default defineConfig({
compilation: {
input: {
index: './src/index.ts',
},
output: {
path: `dist/${format}`,
entryFilename: `[entryName].${ext}`,
targetEnv: 'library',
format,
clean: false,
},
external: ['!^(\\./|\\.\\./|[A-Za-z]:\\\\|/|^@/).*'],
partialBundling: {
enforceResources: [
{
name: 'index',
test: ['.+'],
},
],
},
minify: false,
sourcemap: false,
presetEnv: false,
lazyCompilation: false,
persistentCache: true,
externalNodeBuiltins: false,
},
plugins: [farmDtsPlugin()],
});