Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,13 @@ When creating a new package, you need to provide at least the following. Package
"wpScriptModuleExports": "./build-module/index.js",
"types": "build-types",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "7.25.7"
},
"publishConfig": {
"access": "public"
}
}
```

This assumes that your code is located in the `src` folder and will be transpiled with `Babel`.
This assumes that your code is located in the `src` folder and will be transpiled by the build system.

For production packages that will ship as a WordPress script, include `wpScript: true` in the `package.json` file. This tells the build system to bundle the package for use as a WordPress script.

Expand Down
Loading