property require | globals module | Bun
BuildDocsReferenceGuidesBlogDiscord/
Globals/
ImportMeta/
requirePrequire
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
Globals/
ImportMeta/
requirePrequire
property
ImportMeta.requirerequire: Require
Load a CommonJS module within an ES Module. Bun's transpiler rewrites all calls to require with import.meta.require when transpiling ES Modules for the runtime.
Warning: This API is not stable and may change or be removed in the future. Use at your own risk.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →