Skip to content

Commit

Permalink
feat(react): remove commonjs support (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux authored Jun 14, 2024
1 parent 96a4842 commit 23307a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-keys-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@siemens/ix-react": major
---

feat(react): remove commonjs support
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"version": "2.2.1",
"description": "Siemens iX for React",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/types/index.d.ts",
"files": [
"LICENSE",
Expand Down
10 changes: 3 additions & 7 deletions packages/react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ export default {
output: [
{
dir: 'dist/',
entryFileNames: '[name].esm.js',
chunkFileNames: '[name]-[hash].esm.js',
entryFileNames: '[name].js',
chunkFileNames: '[name]-[hash].js',
format: 'es',
},
{
dir: 'dist/',
format: 'commonjs',
preferConst: true,
sourcemap: true,
},
],
external: Object.keys(pkg.dependencies),
Expand Down

0 comments on commit 23307a0

Please sign in to comment.