Add tests, docs, and examples for @varlock/expo-integration#1
Merged
ghandic merged 4 commits intoexpo-integrationfrom Mar 11, 2026
Merged
Conversation
Co-authored-by: ghandic <23500353+ghandic@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for expo integration similar to nextjs or vite
feat: Add Expo/React Native integration (@varlock/expo-integration)
Mar 11, 2026
Co-authored-by: ghandic <23500353+ghandic@users.noreply.github.com>
Copilot
AI
changed the title
feat: Add Expo/React Native integration (@varlock/expo-integration)
feat: Add @varlock/expo-integration (Babel plugin for Expo/React Native)
Mar 11, 2026
… and CHANGELOG Co-authored-by: ghandic <23500353+ghandic@users.noreply.github.com>
Copilot
AI
changed the title
feat: Add @varlock/expo-integration (Babel plugin for Expo/React Native)
Add tests, docs, and examples for @varlock/expo-integration
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Expo/React Native Babel plugin lacked tests, a docs page, and the surrounding package artifacts that every other integration has.
Tests (
packages/integrations/expo/test/babel-plugin.test.ts)14 Vitest unit tests driving the plugin's visitor directly via lightweight mock objects (no
@babel/coreruntime needed). Covers all decision branches:execSyncVarlock,initVarlockEnv,patchGlobalConsolecalled at startup)string→StringLiteral,number→NumericLiteral,boolean→BooleanLiteral,null→NullLiteral,undefined→Identifier('undefined'),object→JSON.parse(...)CallExpressionisSensitive: true) are never passed toreplaceWithENV["KEY"]), unknown keys, and non-ENVobjects are all skippedname,api.cache(false)calledAdded
test/test:ciscripts topackage.jsonconsistent with other packages.Docs (
packages/varlock-website/src/content/docs/integrations/expo.mdx)New docs page following the
astro.mdx/vite.mdxpattern:varlock init,babel.config.jsdiff)@generateTypesAlso:
Expo / React Nativeentry (withnewbadge) to the sidebar inastro.config.tsintegrations/overview.mdxPackage housekeeping
CHANGELOG.md(present in every other integration package)README.md:import ENV from '@varlock/env'→import { ENV } from 'varlock/env'💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.