@app-config/esbuild
TypeScript icon, indicating that this package has built-in type declarations

2.9.0-beta.3 • Public • Published

App Config esbuild

Use app-config with esbuild.

Install:

yarn add -D @app-config/esbuild

Then add it to your esbuild configuration:

const { createPlugin: appConfig } = require('@app-config/esbuild');

require('esbuild')
  .build({
    bundle: true,
    entryPoints: ['./src/index.ts'],
    outfile: './dist/index.js',
    // this is the line we care about
    plugins: [appConfig()],
  })
  .catch(() => process.exit(1));

This will allow you to import @app-config/main from your application, with all filesystem and other Node.js code stripped out (when using bundle).

Readme

Keywords

none

Package Sidebar

Install

npm i @app-config/esbuild

Weekly Downloads

7

Version

2.9.0-beta.3

License

MPL-2.0

Unpacked Size

11.3 kB

Total Files

8

Last publish

Collaborators

  • joelgallant-me
  • gregnr