Skip to content

Commit 9d9fa17

Browse files
committed
fix(plugin-react-refresh): avoid using optional chaining for Node 12 compat
close #1851
1 parent f8e4eeb commit 9d9fa17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-react-refresh/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function reactRefreshPlugin(opts) {
7878
parserOpts: {
7979
sourceType: 'module',
8080
allowAwaitOutsideFunction: true,
81-
plugins: opts?.parserPlugins
81+
plugins: opts && opts.parserPlugins
8282
},
8383
plugins: [
8484
require('@babel/plugin-syntax-import-meta'),

0 commit comments

Comments
 (0)