Skip to content

Commit

Permalink
update rollup for debug (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu authored Apr 27, 2023
1 parent ff90329 commit 8b64679
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const pkg = require('./package.json');
const testing = process.env.BUILD === 'test';
const dev = process.env.BUILD === 'dev';
console.log(process.env.BUILD);
const isDebug = testing || dev;
const plugins = testing ?
[
['istanbul', {
Expand Down Expand Up @@ -40,7 +41,7 @@ const builds = [
plugins: rollupPlugins,
output: [
{
'sourcemap': false,
'sourcemap': isDebug,
'format': 'umd',
'name': 'maptalks',
banner,
Expand Down Expand Up @@ -76,7 +77,7 @@ const builds = [
]
}];

if (dev) {
if (isDebug) {
module.exports = [builds[0]];
} else {
module.exports = builds;
Expand Down

0 comments on commit 8b64679

Please sign in to comment.