Skip to content

Commit 97a5fe5

Browse files
committed
fix: compilation/minification en ECMA 2015
1 parent b1d42c6 commit 97a5fe5

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/script.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/script.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const onwarn = (warning) => {
9292
};
9393

9494
// En mode DEBUG, on ne change pas le nom des variables, afin de pouvoir les vérifier
95-
const optionsTerser = process.env.DEBUG == "true" ? { mangle: false } : {};
95+
const optionsTerser =
96+
process.env.DEBUG == "true" ? { mangle: false, ecma: 2015 } : { ecma: 2015 };
9697

9798
// Configuration de la compilation avec Rollup
9899
export default {

0 commit comments

Comments
 (0)