Skip to content

Commit

Permalink
feature: add source-map for package file
Browse files Browse the repository at this point in the history
  • Loading branch information
xtx1130 committed Nov 30, 2018
1 parent 181816e commit d4f5024
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tool/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ function pack(rootDir, mainFile) {
mainFile = mainFile || path.resolve(srcDir, 'main.js');

let deps = depAnalyse(mainFile);
for(let i in deps)
console.dir(deps[i])
return {
content: fileContent(mainFile, 1, []).replace(
'// #[main-dependencies]',
deps.map(dep => fileContent(dep)).join('\n\n')),
deps: deps,
base: mainFile
deps: deps
};
}

Expand Down

0 comments on commit d4f5024

Please sign in to comment.