- Add basic
react-server
support. (#27264 by @EvanBacon) - Add support for splitting on
require.resolveWeak
syntax. (#27014 by @EvanBacon)
- Use
typeof window
checks for removing server code. (#27514 by @EvanBacon) - Uncomment all Metro tests. (#26610 by @EvanBacon)
- Add
--no-bytecode
flag toexpo export
to disable generating Hermes bytecode for use with debugging tools. (#26985 by @EvanBacon)
- Add more node modules to collapsed stack regex. (#26812 by @EvanBacon)
- Remove lazy loading in build process for easier development. (#26559 by @EvanBacon)
- Pin
sucrase@3.34.0
to avoid yarn v1 incompatibilities with@isaacs/cliui
module aliases (#26459 by @byCedric)
- Bump
postcss
to 8.4.32. (#26385 by @EvanBacon)
- Fix matching async chunks with special characters in the file names. (#26008 by @EvanBacon)
- Add missing
glob
dependency. (#26020 by @byCedric) - Add missing
@expo/spawn-async
dependency. (#26021 by @byCedric) - Add missing
fs-extra
dependency. (#26022 by @byCedric)
- Improve bundle splitting by reducing duplicate dependencies. (#26010 by @EvanBacon)
- Add
debugId
annotations automatically. (#25935 by @EvanBacon)
- Unpin minor upgrades for
@babel/generator
to^7.20.5
. (#25872 by @kitten) - Remove extraneous Babel pass. (#25930 by @kitten)
- Remove
loadAsync
method and prevent loading default config twice. (#25861 by @EvanBacon)
- Fix bundle splitting and async routes. (#25901 by @EvanBacon)
- Moved
react-refresh
babel plugin from Metro tobabel-preset-expo
. (#25461 by @EvanBacon)
- Fork entire
metro-transform-worker
and remove redundant steps. (#25833 by @EvanBacon) - Eagerly load async chunks with async web routes. (#25627 by @EvanBacon)
- Add custom Expo Router root directory support with full cache invalidation on server reset. (#25658 by @EvanBacon)
- Added support for React Native 0.73.0. (#24971, #25453 by @gabrieldonadel)
- Fix common chunk loading order. (#25831 by @EvanBacon)
- Infer missing transform options for redirected requests from react native clients without
expo-dev-client
. (#25686 by @EvanBacon) - Add missing dependency. (#25446 by @douglowder)
- Resolve all module references from the default
metro-config
. (#25804 by @byCedric)
- Revert enabling inline requires by default. (#25680 by @EvanBacon)
- Replace
@expo/babel-preset-cli
withexpo-module-scripts
. (#25421 by @byCedric)
- Pass assets and artifacts back from static serializer. This cannot be used with older versions of Expo CLI. (#25312 by @EvanBacon)
- Drop support for running arbitrary Metro packages. (#25197 by @EvanBacon)
- Enable
inlineRequires
by default. (#25089 by @EvanBacon)
- Use multi-bundle output serializer for all exports. (#25369 by @EvanBacon)
- Add support for Tailwind with PostCSS. (#25339 by @EvanBacon)
- Expose new FileStore superclass with
@expo/metro-config/file-store
. (#25339 by @EvanBacon) - Rename
basePath
tobaseUrl
and expose to bundles withprocess.env.EXPO_BASE_URL
. (#25305 by @EvanBacon) - Pass
isDev
to the Babel caller. (#25125 by @EvanBacon) - Ignore stack traces from whatwg modules. (#24941 by @EvanBacon)
- Disable bundle splitting on native platforms. (#25366 by @EvanBacon)
- Ensure the
react-native
exports condition is not used on web. (#25260 by @EvanBacon)
- Collapse re-export of
react-native/Libraries/Image/AssetRegistry
to@react-native/assets-registry/registry
. (#25265 by @EvanBacon) - Improve source map generation for static web. (#25245 by @EvanBacon)
- Improve types. (#25257 by @EvanBacon)
- Move environment variables production inlining to
babel-preset-expo
to support source maps. (#25239 by @EvanBacon) - Update tests. (#25149 by @EvanBacon)
- Unrevert
URL
support. (#25005 by @EvanBacon) - Revert
URL
support. (#25006 by @EvanBacon) - "Exotic mode",
EXPO_USE_EXOTIC
, andEXPO_USE_FB_SOURCES
have been deprecated and no longer enable any experimental functionality. (#24927 by @EvanBacon)
isCSSEnabled
now defaults totrue
(#24489 by @marklawlor)
- Pass
projectRoot
to the Babel caller. (#24779 by @EvanBacon) - Automatically optimize transformations based on Hermes usage. (#24672 by @EvanBacon)
- Transpile for Node 18 (LTS). (#24471 by @EvanBacon)
- Shim server files in client environments. (#24429 by @EvanBacon)
- Add
basePath
support. (#23911 by @EvanBacon) - Replace
metroTarget: 'client' | 'node'
withisServer: boolean
in the Babel caller. (#24410 by @EvanBacon)
- Fix exporting paths on Windows machines. (#24382 by @EvanBacon)
- Move
process.env
polyfill strip toexpo/metro-config
. (#24455 by @EvanBacon) - Fix build. (#24309 by @EvanBacon)
- Add source map support with static Metro web exports. (#24213 by @EvanBacon)
- Use stable hashing for static CSS asset names. (#23890 by @EvanBacon)
- Add support for
.mjs
extensions in Expo Metro. (#23528 by @EvanBacon)
- Automatically invalidate cache when
react-native-reanimated
version changes or is added. (#23798 by @EvanBacon)
- Use custom Babel transformer by default. (#23607 by @EvanBacon)
- Expose default Babel transformer with
@expo/metro-config/babel-transformer
. (#23607 by @EvanBacon) - Expose
metroTarget: 'client' | 'node'
to the Babel caller. (#23607 by @EvanBacon)
- Add missing
unstable_styles
export on native for CSS Modules. (#23260 by @EvanBacon) - Keep other URL components in place when rewriting full URLs for virtual entrypoints. (#23546 by @byCedric)
This version does not introduce any user-facing changes.
This version does not introduce any user-facing changes.
- Silence dotenv file watching warnings. (#23169 by @EvanBacon)
- Fix css modules syntax. (#23086 by @EvanBacon)
- Ignore
@expo/metro-runtime
in stacks. (#22738 by @EvanBacon)
- Re-arrange the
Libraries/Core/InitializeCore
import. (#23049 by @EvanBacon)
- CSS Modules now export web-compatible styles by default and
unstable_styles
forreact-native-web
style objects. (#23002 by @EvanBacon)
- Strip
app/+html
files from client bundles. (#22881 by @EvanBacon)
- Fix metro type issues. (#22867 by @EvanBacon)
- Fix metro JSC urls. (#22929 by @EvanBacon)
- Ensure
@expo/metro-runtime
is shifted to be imported first when installed. (#22628 by @EvanBacon) - Added support for React Native 0.72. (#22588 by @kudo)
- Add custom
server.rewriteRequestUrl
which is required for custom entry points in development builds that don't useexpo-dev-client
. This must now be extended in local projects that need to useserver.rewriteRequestUrl
. (#21643 by @EvanBacon) - Import Metro dependencies directly from where ever the
expo/metro-config
package is being initialized. (#21330 by @EvanBacon) - Drop
@unimodules
namespace from Exotic transformer. (#21330 by @EvanBacon) expo-asset
is no longer optional. (#21330 by @EvanBacon)
- Add resource serializer for static CSS extraction in development. (#22325 by @EvanBacon)
- Support custom entry files for development builds that don't use
expo-dev-client
. (#21643 by @EvanBacon) - Export
MetroConfig
type. (#21330 by @EvanBacon) - Add support for inlining environment variables using the
EXPO_PUBLIC_
prefix. (#21983 by @EvanBacon) - Add support for loading environment variables from
.env
files. (#21983 by @EvanBacon) - Add CSS support on web and shims on native, requires
transformerPath
not be overwritten. (#21941 by @EvanBacon) - Add CSS Module support on web and shims on native, requires
transformerPath
not be overwritten. (#21941 by @EvanBacon) - Add PostCSS support on web, configurable with
postcss.config.js
andpostcss.config.json
, whenisCSSEnabled
istrue
. (#22032 by @EvanBacon) - Add partial SASS/SCSS support on web, enabled when
isCSSEnabled
istrue
. (#22031 by @EvanBacon) - Add
cjs
extension toresolver.sourceExts
(without platform extension support). (#22076 by @EvanBacon)
- Escape backticks in runtime CSS scripts. (#22040 by @EvanBacon)
- Escape octal characters in runtime CSS scripts. (#22054 by @EvanBacon)
- Allow environment variables to be mutable in development. (#22072 by @EvanBacon)
- Drop
testing
andnative
fromresolver.platforms
. (#21330 by @EvanBacon)
- Add
EXPO_USE_METRO_WORKSPACE_ROOT
to enable using the workspace root for serving files. (#21088 by @EvanBacon)
- Ignore
react-dom
traces. (#21005 by @EvanBacon) - Add
avif
andheic
to the defaultresolver.assetExts
to supportexpo-image
. (#20893 by @EvanBacon)
- Fix Exotic support for Expo SDK 47 projects. (#20827 by @EvanBacon)
- Remove
@expo/json-file
. (#20720 by @EvanBacon)