chore: analyze resources as entrypoints

This commit is contained in:
calebboyd
2019-03-30 20:17:35 -07:00
parent 6e3cadbe22
commit d73325ba35
3 changed files with 811 additions and 293 deletions
+805 -291
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "3.0.0-beta.18",
"version": "3.0.0",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+5 -1
View File
@@ -43,7 +43,11 @@ export default async function bundle(compiler: NexeCompiler, next: any) {
return next()
}
const { files, warnings } = await resolveFiles(input, { cwd, expand: true, loadContent: false })
const { files, warnings } = await resolveFiles(
input,
...Object.keys(compiler.bundle.index).filter(x => x.endsWith('.js')),
{ cwd, expand: true, loadContent: false }
)
if (
warnings.filter(x => x.startsWith('Error parsing file') && !x.includes('node_modules')).length