Skip to content

Commit

Permalink
Merge pull request #59 from kucrut/add-missing-changeset
Browse files Browse the repository at this point in the history
Add missing changeset
  • Loading branch information
kucrut authored Oct 10, 2023
2 parents 4f8e496 + 56bce53 commit 5222a8c
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 67 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-birds-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kucrut/vite-for-wp': minor
---

Introduce wp_scripts() plugin to externalise scripts already registered by WP core.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
],
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/node": "^20.8.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@wordpress/eslint-plugin": "^17.0.0",
"dts-buddy": "^0.2.5",
"eslint": "^8.51.0",
Expand Down
134 changes: 70 additions & 64 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/exports/plugins/wp-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { wp_globals } from '../utils/wp-globals.js';
*
* This plugin provides easy access to built-in WordPress scripts and exclude them from the build.
*
* @since 0.7.0
*
* @type {(options?: Options) => import('vite').PluginOption[]}
* @return {import('vite').PluginOption[]} Vite plugins instances.
*/
Expand Down

0 comments on commit 5222a8c

Please sign in to comment.