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() {
345
345
const root = path . join ( __dirname , '..' , '..' ) ;
346
346
const webPackageJSON = path . join ( root , '/remote/web' , 'package.json' ) ;
347
347
const webPackages = JSON . parse ( fs . readFileSync ( webPackageJSON , 'utf8' ) ) . dependencies ;
348
- const nodePaths : { [ key : string ] : string } = { } ;
348
+ const nodePaths : { [ key : string ] : string } = { } ;
349
349
for ( const key of Object . keys ( webPackages ) ) {
350
350
const packageJSON = path . join ( root , 'node_modules' , key , 'package.json' ) ;
351
351
const packageData = JSON . parse ( fs . readFileSync ( packageJSON , 'utf8' ) ) ;
352
352
let entryPoint = packageData . browser ?? packageData . main ;
353
353
// On rare cases a package doesn't have an entrypoint so we assume it has a dist folder with a min.js
354
354
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
+ }
356
359
entryPoint = `dist/${ key } .min.js` ;
357
360
}
358
361
// Remove any starting path information so it's all relative info
You can’t perform that action at this time.
0 commit comments