@expo/xdl

中文文档
59.2.1发布于 2022/08/05MITTypeScriptCommonJS近 30 天下载 1.6万

The Expo Development Library

原始使用文档
文档目录5 节
  1. Building Watchman
  2. Environment Variables
  3. EXPO_WEB_BUILD_STRICT
  4. EXPO_WEB_DEBUG
  5. EXPO_WEB_INFO

xdl

The Expo Development Library. Documentation

If you have problems with the code in this repository, please file issues & bug reports at https://github.com/expo/expo. Thanks!

Building Watchman

Configure with ./configure --disable-statedir --without-pcre to use TMPDIR for the watchman state.

Environment Variables

EXPO_WEB_BUILD_STRICT

All warnings will be treated as errors in CI.

EXPO_WEB_DEBUG

When you have errors in the production build that aren't present in the development build you can use EXPO_WEB_DEBUG=true expo start --no-dev to debug those errors.

  • Prevent the production build from being minified.
  • Include file path info comments in the bundle.

EXPO_WEB_INFO

Print a diagnostic report of the Webpack config.

版本与发布记录

@expo/xdl 共发布 248 个版本,首次发布于 2019/05/20;过去 12 个月发布了 0 个版本。

版本发布日期距今
59.2.1latest2022/08/054 年前
59.2.02022/03/114 年前
59.1.72021/10/015 年前
59.1.62021/10/015 年前
59.1.52021/10/015 年前
59.1.42021/09/305 年前

其他发布通道:rc → 56.1.4-rc.2,legacy-support → 56.8.2,next → 57.5.0-alpha.0,beta → 58.0.4-beta.1409,turtle-test → 58.0.21-rc.0,alpha → 59.0.25-alpha.0。

关于 @expo/xdl 的常见问题

@expo/xdl 是什么?

The Expo Development Library

如何安装 @expo/xdl?

在项目目录运行 npm install @expo/xdl,或使用 pnpm add / yarn add / bun add。

@expo/xdl 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@expo/xdl 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@expo/xdl 可以商用吗?

@expo/xdl 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@expo/xdl 的下载量有多少?

根据 npm 官方下载统计,@expo/xdl 在 2026/10/14 – 2026/11/12 这 30 天内被下载 15,664 次,日均约 522 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@expo/xdl 还在维护吗?

最新版本 59.2.1 发布于 2022/08/05(4 年前);至今共发布 248 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/05/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。