Skip to content

Commit 09c28bd

Browse files
authored
Added env var check to build (#6091)
1 parent cbd9e78 commit 09c28bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export default (args) => {
6565
});
6666

6767
// Add an unbundled es6 build
68-
if (t !== 'min') targets.push(buildTarget(t, 'es6', 'src/index.js', 'build', false));
68+
if (t !== 'min' && envTarget === null || envTarget === t || envTarget === `${t}_es6`) {
69+
if (t !== 'min') targets.push(buildTarget(t, 'es6', 'src/index.js', 'build', false));
70+
}
6971

7072
});
7173

0 commit comments

Comments
 (0)