Skip to content

Commit 2402e02

Browse files
committed
fine
1 parent 9dc1c5c commit 2402e02

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/lib/i18n/i18n.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,9 @@ function createIcuMessageFn(filename, fileStrings) {
203203

204204
filenameToLookup = path.relative(LH_ROOT, filenameToLookup);
205205
} else {
206-
if (!filename.startsWith('node_modules/')) {
207-
throw new Error(`Provided UIString is invalid: ${filename}, ${keyname}.`);
208-
}
209206
// `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.
212209
filenameToLookup = filename;
213210
}
214211

0 commit comments

Comments
 (0)