温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/BuildConfig/env
点击访问原文链接

property env | Bun module | Bun

property env | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/BuildConfig/envPenv

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/BuildConfig/envPenv

property

BuildConfig.envenv?: 'inline' | 'disable' | `${string}*`

Controls how environment variables are handled during bundling.

Can be one of:

"inline": Injects environment variables into the bundled output by converting process.env.FOO references to string literals containing the actual environment variable values"disable": Disables environment variable injection entirelyA string ending in *: Inlines environment variables that match the given prefix. For example, "MY_PUBLIC_*" will only include env vars starting with "MY_PUBLIC_"
Bun.build({
env: "MY_PUBLIC_*",
entrypoints: ["src/index.ts"],
})

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

property env | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Controls how environment variables are handled during bundling. Can be one of: - `