File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,9 @@ function createIcuMessageFn(filename, fileStrings) {
203
203
204
204
filenameToLookup = path . relative ( LH_ROOT , filenameToLookup ) ;
205
205
} else {
206
- if ( ! filename . startsWith ( 'node_modules/' ) ) {
207
- throw new Error ( `Provided UIString is invalid: ${ filename } , ${ keyname } .` ) ;
208
- }
209
206
// `filename` might have been passed in as the exact i18n identifier
210
- // already (see: stack-packs.js). Otherwise, the common case requires relativizing
211
- // the absolute filename with LH_ROOT.
207
+ // already (see: stack-packs.js). Also the case for bundled lighthouse.
208
+ // Otherwise, the common case requires relativizing the absolute filename with LH_ROOT.
212
209
filenameToLookup = filename ;
213
210
}
214
211
You can’t perform that action at this time.
0 commit comments