Skip to content

Commit

Permalink
fix: show source file on error
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Jun 19, 2020
1 parent ac73074 commit 6188193
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/Bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ class Bundler {
? config.externals
: allExternal;

const onWarn = (warning, warn) => {
console.log(warning.message);
warn(warning);
};
// const onWarn = (warning, warn) => {
// console.log(warning.message);
// warn(warning);
// };

const onError = (ex) => {
console.error(ex?.message || ex);
Expand All @@ -300,7 +300,7 @@ class Bundler {
input: filePath,
plugins,
external,
onwarn: onWarn,
onwarn: (warning, warn) => console.log(warning.message, filePath),
})
.then((bundler) =>
bundler.write({
Expand Down

0 comments on commit 6188193

Please sign in to comment.