File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
compiler/apps/playground/scripts
packages/internal-test-utils Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ set -eo pipefail
88
99HERE=$( pwd)
1010
11- cd ../../packages/react-compiler-runtime && yarn --silent link && cd $HERE
12- cd ../../packages/babel-plugin-react-compiler && yarn --silent link && cd $HERE
11+ cd ../../packages/react-compiler-runtime && yarn --silent link && cd " $HERE "
12+ cd ../../packages/babel-plugin-react-compiler && yarn --silent link && cd " $HERE "
1313
1414yarn --silent link babel-plugin-react-compiler
1515yarn --silent link react-compiler-runtime
Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ function normalizeCodeLocInfo(str) {
156156 // at Component (/path/filename.js:123:45)
157157 // React format:
158158 // in Component (at filename.js:123)
159- return str . replace ( / \n + (?: a t | i n ) ( [ \S ] + ) [ ^ \n ] * / g, function ( m , name ) {
159+ return str . replace ( / \n + (?: a t | i n ) ( [ ^ ( \[ \n ] + ) [ ^ \n ] * / g, function ( m , name ) {
160+ name = name . trim ( ) ;
160161 if ( name . endsWith ( '.render' ) ) {
161162 // Class components will have the `render` method as part of their stack trace.
162163 // We strip that out in our normalization to make it look more like component stacks.
Original file line number Diff line number Diff line change 1212
1313HERE=$( pwd)
1414
15- cd compiler/packages/babel-plugin-react-compiler && yarn --silent link && cd $HERE
15+ cd compiler/packages/babel-plugin-react-compiler && yarn --silent link && cd " $HERE "
1616
1717yarn --silent link babel-plugin-react-compiler
You can’t perform that action at this time.
0 commit comments