Skip to content

Commit

Permalink
fix(cli): corrects the --sourcemap=false option parsing (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdorsi committed Feb 2, 2021
1 parent eb5cfd9 commit bb5789a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Expand Up @@ -61,6 +61,8 @@ export default async function microbundle(inputOptions) {
console.log(
'Warning: inline sourcemaps should only be used for debugging purposes.',
);
} else if (options.sourcemap === 'false') {
options.sourcemap = false;
} else if (options.sourcemap !== false) {
options.sourcemap = true;
}
Expand Down

0 comments on commit bb5789a

Please sign in to comment.