UNPKG

remix-nlux

Version:

Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.

43 lines (41 loc) 1.27 kB
import {OutputOptions} from 'rollup'; export const generateOutputConfig = ( packageNpmName: string, // Example: @nlux/react packageFileName: string, // Example: nlux-react isProduction: boolean, ): OutputOptions[] => { const envFolder = isProduction ? 'prod' : 'dev'; const path = `../../../dist/${envFolder}/${packageFileName}`; return [ { file: `${path}/esm/${packageFileName}.js`, format: 'esm', esModule: false, sourcemap: !isProduction, inlineDynamicImports: true, strict: true, exports: 'named', name: packageNpmName, }, { file: `${path}/cjs/${packageFileName}.js`, format: 'cjs', esModule: false, sourcemap: !isProduction, inlineDynamicImports: true, strict: true, exports: 'named', name: packageNpmName, }, { file: `${path}/umd/${packageFileName}.js`, format: 'umd', esModule: false, sourcemap: !isProduction, inlineDynamicImports: true, strict: true, exports: 'named', name: packageNpmName, }, ]; };