Skip to content

Commit

Permalink
Added env var check to build (#6091)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklundin committed Feb 26, 2024
1 parent cbd9e78 commit 09c28bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollup.config.mjs
Expand Up @@ -65,7 +65,9 @@ export default (args) => {
});

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

});

Expand Down

0 comments on commit 09c28bd

Please sign in to comment.