🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@app-config/esbuild

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-config/esbuild

esbuild module resolution support for @app-config

2.9.0-beta.3
latest
Source
npm
Version published
Maintainers
2
Created
Source

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).

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts