File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
adapter-cloudflare-workers Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,9 @@ export default function ({ config = 'wrangler.toml' } = {}) {
115115 / T h e p a c k a g e " ( .+ ) " w a s n ' t f o u n d o n t h e f i l e s y s t e m b u t i s b u i l t i n t o n o d e / . exec (
116116 node . text
117117 ) ;
118- if ( match ) {
119- let id = match [ 1 ] ;
120- if ( ! id . startsWith ( 'node:' ) ) id = `node:${ id } ` ;
121118
122- node . text = `Cannot use "${ id } " when deploying to Cloudflare.` ;
119+ if ( match ) {
120+ node . text = `Cannot use "${ match [ 1 ] } " when deploying to Cloudflare.` ;
123121 }
124122 }
125123 }
Original file line number Diff line number Diff line change @@ -104,11 +104,9 @@ export default function (options = {}) {
104104 / T h e p a c k a g e " ( .+ ) " w a s n ' t f o u n d o n t h e f i l e s y s t e m b u t i s b u i l t i n t o n o d e / . exec (
105105 node . text
106106 ) ;
107- if ( match ) {
108- let id = match [ 1 ] ;
109- if ( ! id . startsWith ( 'node:' ) ) id = `node:${ id } ` ;
110107
111- node . text = `Cannot use "${ id } " when deploying to Cloudflare.` ;
108+ if ( match ) {
109+ node . text = `Cannot use "${ match [ 1 ] } " when deploying to Cloudflare.` ;
112110 }
113111 }
114112 }
You can’t perform that action at this time.
0 commit comments