File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 @lramos 15 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
You can’t perform that action at this time.
0 commit comments