Skip to content

Commit ca6888d

Browse files
committed
feat!: remove bundled entrypoint (pfe.min.js) (#3089)
* feat!: remove bundled entrypoint (pfe.min.js) The bundled entrypoint causes custom element double-registration issues and is not the recommended way to consume the library. Closes #3087 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove bundle references from docs plugin Remove the bundle() call and pfe.min.* passthrough copies from the Eleventy docs plugin, since the bundled entrypoint was removed. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove trailing blank line in pfe-assets plugin Fixes padded-blocks lint error. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fe2ce5e commit ca6888d

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@patternfly/elements": major
3+
---
4+
5+
Removed the bundled entrypoint (`pfe.min.js`). Import individual
6+
elements directly instead, e.g. `import '@patternfly/elements/pf-button/pf-button.js'`.
7+
8+
The bundled entrypoint caused custom element double-registration issues
9+
and is not recommended for production use.

elements/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
"description": "PatternFly Elements",
66
"customElements": "custom-elements.json",
77
"type": "module",
8-
"main": "./pfe.min.js",
98
"module": "./pfe.js",
109
"types": "./pfe.d.ts",
1110
"exports": {
12-
".": "./pfe.min.js",
1311
"./form-control.css": "./form-control.css",
1412
"./form-control.css.js": "./form-control.css.js",
1513
"./pf-v5-accordion/pf-v5-accordion-header.js": "./pf-v5-accordion/pf-v5-accordion-header.js",

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"build:lightdom",
5656
"build:elements",
5757
"build:create",
58+
5859
"build:react"
5960
]
6061
},
@@ -168,7 +169,6 @@
168169
],
169170
"dependencies": [
170171
"build:core",
171-
"build:elements",
172172
"analyze"
173173
]
174174
},
@@ -192,8 +192,7 @@
192192
"service": true,
193193
"command": "eleventy --serve",
194194
"dependencies": [
195-
"build:core",
196-
"build:elements"
195+
"build:core"
197196
]
198197
},
199198
"start": {
@@ -271,11 +270,11 @@
271270
"@actions/glob": "^0.5.0",
272271
"@commitlint/cli": "^19.4.0",
273272
"@commitlint/config-conventional": "^19.2.2",
273+
"@jspm/generator": "~2.7.6",
274274
"@lit/react": "^1.0.8",
275275
"@octokit/core": "^6.1.2",
276276
"@patternfly/patternfly": "^4.224.5",
277277
"@pwrs/cem": "^0.7.5",
278-
"@pwrs/mappa": "^0.0.4",
279278
"@rhds/elements": "^4.0.1",
280279
"@types/koa__router": "^12.0.5",
281280
"@types/node": "^22.19.0",
@@ -307,6 +306,10 @@
307306
"@pwrs/cem-linux-x64": "^0.7.5",
308307
"@rollup/rollup-darwin-arm64": "^4.54.0"
309308
},
309+
"overrides": {
310+
"playwright": "~1.48.0",
311+
"@playwright/test": "~1.48.0"
312+
},
310313
"workspaces": [
311314
"./core/*",
312315
"./elements",

0 commit comments

Comments
 (0)