UNPKG

react-declarative

Version:

A React form builder which interacts with a JSON endpoint to generate nested 12-column grids with input fields and automatic state management in a declarative style. Endpoint is typed by TypeScript guards (IntelliSense available). This tool is based on ma

24 lines (21 loc) 522 B
const esbuild = require('esbuild-wasm'); const { nodeExternalsPlugin } = require('esbuild-node-externals'); esbuild.build({ entryPoints: ['src/index.ts'], outdir: 'dist/modern', bundle: true, minify: true, splitting: true, format: 'esm', target: 'chrome70', plugins: [nodeExternalsPlugin()], }); esbuild.build({ entryPoints: ['src/index.ts'], outdir: 'dist/common', bundle: true, minify: true, format: 'cjs', target: 'chrome70', plugins: [nodeExternalsPlugin()], });