Skip to content

Commit 2aedf64

Browse files
committed
workaround a rollup issue
It seems that rollup can not detect usage in a template expression: https://github.com/babel/babel/pull/12741/checks?check_run_id=2196889572#step:6:95
1 parent 8fb0c8e commit 2aedf64

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/babel-preset-react/src/normalize-options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export default function normalizeOptions(options = {}) {
7373
} else {
7474
throw new Error(
7575
`@babel/preset-react: 'runtime' must be one of ['automatic', 'classic'] but we have '${runtime}'\n` +
76-
`- Did you mean '${findSuggestion(runtime, validRuntime)}'?`,
76+
`- Did you mean '` +
77+
findSuggestion(runtime, validRuntime) +
78+
`'?`,
7779
);
7880
}
7981

0 commit comments

Comments
 (0)