Skip to content

Commit

Permalink
Use wp-script-module main field
Browse files Browse the repository at this point in the history
This better aligns with "Script Modules" naming in Core.
  • Loading branch information
sirreal committed Sep 10, 2024
1 parent 63b1ce5 commit 4552a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/interactivity-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"main": "build/index.js",
"module": "build-module/index.js",
"wp-module": "build-module/index.js",
"wp-script-module": "build-module/index.js",
"react-native": "src/index",
"types": "build-types",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/interactivity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"main": "build/index.js",
"module": "build-module/index.js",
"wp-module": "build-module/index.js",
"wp-script-module": "build-module/index.js",
"react-native": "src/index",
"types": "build-types",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tools/webpack/script-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
},
resolve: {
extensions: [ '.js', '.ts', '.tsx' ],
mainFields: [ 'wp-module' ],
mainFields: [ 'wp-script-module' ],
},
module: {
rules: [
Expand Down

0 comments on commit 4552a8a

Please sign in to comment.