Remove direct dependency on @expo/config-plugins (#10152)

This commit is contained in:
Samuel Newman
2026-04-10 09:49:41 -07:00
committed by GitHub
parent c79dff9b3e
commit 19df58f1ef
25 changed files with 26 additions and 48 deletions
+3 -4
View File
@@ -1,11 +1,10 @@
const {withAppDelegate} = require('@expo/config-plugins')
const {mergeContents} = require('@expo/config-plugins/build/utils/generateCode')
const {withAppDelegate, CodeGenerator} = require('expo/config-plugins')
module.exports = config =>
withAppDelegate(config, config => {
let contents = config.modResults.contents
contents = mergeContents({
contents = CodeGenerator.mergeContents({
src: contents,
anchor: '// Linking API',
newSrc: `
@@ -22,7 +21,7 @@ module.exports = config =>
comment: '//',
}).contents
contents = mergeContents({
contents = CodeGenerator.mergeContents({
src: contents,
anchor: '// Universal Links',
newSrc: `