Skip to content

Commit 90cd66b

Browse files
committed
feat: warn deprecated removeNodeProtocol
1 parent 7847902 commit 90cd66b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/config/options.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,13 @@ export async function resolveUserConfig(
110110
logger.warn('`bundle` option is deprecated. Use `unbundle` instead.')
111111
}
112112

113-
if (removeNodeProtocol && nodeProtocol) {
114-
throw new TypeError(
115-
'`removeNodeProtocol` is deprecated. Please only use `nodeProtocol` instead.',
113+
if (removeNodeProtocol) {
114+
if (nodeProtocol)
115+
throw new TypeError(
116+
'`removeNodeProtocol` is deprecated. Please only use `nodeProtocol` instead.',
117+
)
118+
logger.warn(
119+
'`removeNodeProtocol` is deprecated. Use `nodeProtocol: "strip"` instead.',
116120
)
117121
}
118122

0 commit comments

Comments
 (0)