Skip to content

Commit

Permalink
Use correct React external (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambrgmn authored Apr 26, 2023
1 parent f0f1e62 commit 81de3ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-planes-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fransvilhelm/wp-bundler': patch
---

Skip using wp.element globals
2 changes: 1 addition & 1 deletion src/utils/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface Dependencies {
}

export const DEPENDENCIES: Dependencies = {
react: { wpId: 'wp-element', global: 'wp.element' },
react: { wpId: 'wp-element', global: 'React' },
'react-dom': { wpId: 'wp-element', global: 'ReactDOM' },
jquery: { wpId: 'jquery', global: '$' },
lodash: { wpId: 'lodash', global: '_' },
Expand Down

0 comments on commit 81de3ca

Please sign in to comment.