Skip to content

Commit 5571c06

Browse files
committed
don't bother prefixing the id
1 parent eb1d5f1 commit 5571c06

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

packages/adapter-cloudflare-workers/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,9 @@ export default function ({ config = 'wrangler.toml' } = {}) {
115115
/The package "(.+)" wasn't found on the file system but is built into node/.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
}

packages/adapter-cloudflare/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,9 @@ export default function (options = {}) {
104104
/The package "(.+)" wasn't found on the file system but is built into node/.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
}

0 commit comments

Comments
 (0)