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
8
8
9
9
HERE=$( pwd)
10
10
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 "
13
13
14
14
yarn --silent link babel-plugin-react-compiler
15
15
yarn --silent link react-compiler-runtime
Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ function normalizeCodeLocInfo(str) {
156
156
// at Component (/path/filename.js:123:45)
157
157
// React format:
158
158
// 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 ( ) ;
160
161
if ( name . endsWith ( '.render' ) ) {
161
162
// Class components will have the `render` method as part of their stack trace.
162
163
// 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 12
12
13
13
HERE=$( pwd)
14
14
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 "
16
16
17
17
yarn --silent link babel-plugin-react-compiler
You can’t perform that action at this time.
0 commit comments