Skip to content

Commit f0654a2

Browse files
committed
1 parent d931b94 commit f0654a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/lib/util.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,17 @@ export function acquireWebNodePaths() {
345345
const root = path.join(__dirname, '..', '..');
346346
const webPackageJSON = path.join(root, '/remote/web', 'package.json');
347347
const webPackages = JSON.parse(fs.readFileSync(webPackageJSON, 'utf8')).dependencies;
348-
const nodePaths: { [key: string]: string } = { };
348+
const nodePaths: { [key: string]: string } = {};
349349
for (const key of Object.keys(webPackages)) {
350350
const packageJSON = path.join(root, 'node_modules', key, 'package.json');
351351
const packageData = JSON.parse(fs.readFileSync(packageJSON, 'utf8'));
352352
let entryPoint = packageData.browser ?? packageData.main;
353353
// On rare cases a package doesn't have an entrypoint so we assume it has a dist folder with a min.js
354354
if (!entryPoint) {
355-
console.warn(`No entry point for ${key} assuming dist/${key}.min.js`);
355+
// TODO @lramos15 remove this when jschardet adds an entrypoint so we can warn on all packages w/out entrypoint
356+
if (key !== 'jschardet') {
357+
console.warn(`No entry point for ${key} assuming dist/${key}.min.js`);
358+
}
356359
entryPoint = `dist/${key}.min.js`;
357360
}
358361
// Remove any starting path information so it's all relative info

0 commit comments

Comments
 (0)