From b0092db8a423eac311d493681ddc526ec8f81231 Mon Sep 17 00:00:00 2001 From: Dany Castillo <31006608+dcastil@users.noreply.github.com> Date: Sat, 19 Aug 2023 12:26:49 +0200 Subject: [PATCH] transpile to older targets Targets should only be modernized in // To be enabled in https://github.com/dcastil/tailwind-merge/issues/126 --- scripts/rollup.config.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/rollup.config.mjs b/scripts/rollup.config.mjs index de4a3f16..591b67b5 100644 --- a/scripts/rollup.config.mjs +++ b/scripts/rollup.config.mjs @@ -18,12 +18,16 @@ export default defineConfig([ getOutputConfig({ file: pkg.exports['.'].import, format: 'esm', - targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions', + targets: 'supports es5', + // To be enabled in https://github.com/dcastil/tailwind-merge/issues/126 + // targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions', }), getOutputConfig({ file: pkg.exports['.'].require, format: 'cjs', - targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions', + targets: 'supports es5', + // To be enabled in https://github.com/dcastil/tailwind-merge/issues/126 + // targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions', }), ], external: /node_modules/,