Skip to content

Commit

Permalink
Merge pull request #287 from dcastil/breaking-feature/126/transpile-l…
Browse files Browse the repository at this point in the history
…ib-to-modern-js

Transpile lib to more modern JS
  • Loading branch information
dcastil authored Aug 19, 2023
2 parents df30d7a + 530a12b commit f31447b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions scripts/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ export default defineConfig([
getOutputConfig({
file: pkg.exports['.'].import,
format: 'esm',
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',
targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions',
}),
getOutputConfig({
file: pkg.exports['.'].require,
format: 'cjs',
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',
targets: '> 0.5%, last 2 versions, Firefox ESR, not dead, maintained node versions',
}),
],
external: /node_modules/,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Emit
"declaration": true,
"noEmit": true,
"outDir": "dist/types",
"outDir": "types",
"sourceMap": true,
// Interop Constraints
"esModuleInterop": true,
Expand Down

0 comments on commit f31447b

Please sign in to comment.