We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff90329 commit 8b64679Copy full SHA for 8b64679
rollup.config.js
@@ -7,6 +7,7 @@ const pkg = require('./package.json');
7
const testing = process.env.BUILD === 'test';
8
const dev = process.env.BUILD === 'dev';
9
console.log(process.env.BUILD);
10
+const isDebug = testing || dev;
11
const plugins = testing ?
12
[
13
['istanbul', {
@@ -40,7 +41,7 @@ const builds = [
40
41
plugins: rollupPlugins,
42
output: [
43
{
- 'sourcemap': false,
44
+ 'sourcemap': isDebug,
45
'format': 'umd',
46
'name': 'maptalks',
47
banner,
@@ -76,7 +77,7 @@ const builds = [
76
77
]
78
}];
79
-if (dev) {
80
+if (isDebug) {
81
module.exports = [builds[0]];
82
} else {
83
module.exports = builds;
0 commit comments