{"_id":"@asolopovas/vite-plugin-wp","_rev":"10-734dbad1e6558f9169baac6d9e07d7b7","name":"@asolopovas/vite-plugin-wp","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.0","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.0","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"20a38cec3e418e438e2448ed74c8976542f34104","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.0.tgz","fileCount":14,"integrity":"sha512-yZErxAJ8QVmsgvL35I4PZbAnSEYofIo6ylqS4TLfBQT8vl/109/XB5bqLyFjh/1dZk6duRVsHQ2bynFQU8r/RA==","signatures":[{"sig":"MEUCIQCNQxi4vaFiVna/Kw0AQGwZBEdZIIRRp5VtBBUWi0JxBwIgGbavo0dylY9ExqJ7ywkU4yQoP2MXLJi9YEAmEtUU+9c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125412},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"830a6c4e734114aa4705cc8c412f426dcf5f2437","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"bun run build && bun run test && bun run typecheck"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.0_1775634506855_0.5755294429090716","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.1","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.1","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"d790305b956540424a26e5c95b7d8e4dede42fb1","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.1.tgz","fileCount":14,"integrity":"sha512-T0u4iwI2qIOFtpE0mspGyFCCgARVzgCptR2pcPGlaJrTz/PE/fJ4fEn/Wfxv/5QNgIDNXe0ioNNwE5oaYvlkjQ==","signatures":[{"sig":"MEUCIC4cfIiUm4b18mR3VNXTAFSKXPY7lktCrZipHeZuctbHAiEA2ozp4MGs9oNIJ4LPHcix++pLbQK8+sCyP7zMCEIy3AE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125388},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"fa8e86a9ecfee3ff10690ff8007df8029dd8a34e","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"bun run build && bun run test && bun run typecheck"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.1_1775636227020_0.5874181174748025","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.2","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.2","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"18222093edbb3c029bb26ee00bea345da29ec7d8","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.2.tgz","fileCount":14,"integrity":"sha512-OE2lxiUSPyinNtSe1NxidmxeN/RbyPCedYBHDd4iajACgcSr2EtZ9T0PAkqMKXJ1zhwA7z0OJpMVRW5VV0mlrQ==","signatures":[{"sig":"MEYCIQDMg95b/SJ/SNHoQ6BqAwzeb+t70iu/P7QwdcxEe72x4QIhALiBsRe0tLPY9wyRmfF8mWpPVnws329H1O73i/1Pmx21","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126274},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e8c0c478cf3fe912b99430a3b97af293ee2c8f52","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","test:e2e:hmr":"playwright test --grep @dev","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run build && bun run test && bun run typecheck"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@playwright/test":"^1.58.1"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.2_1775637556733_0.734442771627865","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.3","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.3","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"88211b2a012f92c715fceaff5e1323e3f0639fde","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.3.tgz","fileCount":14,"integrity":"sha512-uMI5DEFL0/RDuIxEX+EXQPOY9Oq5mT0PQtdnHXELWxguOEV+WvPXfmD/pGW/CJJO3eGyoKI7VtiKBYCF6ZaQ3w==","signatures":[{"sig":"MEYCIQDn4klp3s+2EKWhcnPXJTonajrK5/XIDMAgEBQ6SORqgQIhAMy22SJY0iPb4tVnbV02EMy+kccyyHfwcprgVd6cKmmP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136890},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"995b7937c3f3696ffd5b292263b7b9511e78260f","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","wp-env":"wp-env","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run build && bun run test && bun run typecheck","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.3_1775762964202_0.8910700940526248","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.4","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.4","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"78c1416e3b0202dc8e2550c0b4f594d36725a47e","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.4.tgz","fileCount":14,"integrity":"sha512-fcNiIKLp6wN4HnF9jsmEYeOaxp443+p8D0GtXeod2u0Cm2VUAlm9YQQq75a3HZOSoCdmuc/Mfsz4Df8Wy0B/NA==","signatures":[{"sig":"MEUCIHTFw8Ruf/oGElpsIH6oVIqmIP7Qck2ISYAVUqbpckglAiEAwczokux6frvv77i7jUKNrF/Akg+IsshnNphc2pXfBkM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":140831},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a310add715824d116b0435ec26ecb0f5d37061bd","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","wp-env":"wp-env","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run build && bun run test && bun run typecheck","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.4_1776425174700_0.2451391185627747","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.5","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.5","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"c017a8551cec7acfc33918783d9cce6e25e4cf0b","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.5.tgz","fileCount":14,"integrity":"sha512-howlBQgPVJkjVxm7REiuGCHIG+r6J9lGNMWAM9e0cnMETtr31CMMpGRi1iaNy4cgCA//avDtDGjGpfXAHVBc3A==","signatures":[{"sig":"MEYCIQDhEDgwEdJPOoti1ldknBLjOB4B01033Fo8MVevGF/aVwIhALJGxPuNeOaDNP6zaD/zDulnyv0RuK+cilrMNmWnjjGB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":141995},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7963963a0d2e1aa8ce04bbcff14429ae1bd6e947","scripts":{"dev":"tsup --watch","test":"bun test","build":"tsup","wp-env":"wp-env","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run build && bun run test && bun run typecheck","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1"},"peerDependencies":{"vite":">=8"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.5_1776425858831_0.5415484872170226","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.6","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.6","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"661a039e3251a6e2be69952115046b14bb6a801f","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.6.tgz","fileCount":14,"integrity":"sha512-ai9+twGKzIQ3CNwdTvexu0lr4ocMpbTbHwOXRG4n3zO24u77euym41i41D+sW+vYyr+v8yk2kcssSudt1TG9fg==","signatures":[{"sig":"MEQCIBVPN4PN3ivf4zYx3zDW/zzhyxy4tfxhuC3ZesSumhM4AiA1qfr+3rxc29+3wdXlvPaMzRyRtgS9zjMnmgZzdH6Qqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":129865},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"b54bcb50a1f02301d22aa24be7ffa5fe756bbf4d","scripts":{"dev":"tsup --watch","lint":"oxlint src tests tsup.config.ts playwright.config.ts","test":"bun test","build":"tsup","check":"bun run quality","format":"oxfmt --write src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","wp-env":"wp-env","prepare":"(simple-git-hooks || true) && bun scripts/prepare.mjs","quality":"bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","format:check":"oxfmt --check src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run check","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","oxfmt":"^0.52.0","oxlint":"^1.67.0","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1","simple-git-hooks":"^2.13.1"},"peerDependencies":{"vite":">=8"},"simple-git-hooks":{"pre-commit":"bun run quality"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.6_1781106070111_0.8421570144664596","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.7","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.7","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"7a7f626e6e85390cc1ebec879a7681c6a6d32ff5","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.7.tgz","fileCount":14,"integrity":"sha512-p/5qIBXriJqZ7xQeNPT4SybYzymweaQfJe0Wpb04rggtlaF5pepWAC6cFZmIEH3hgF3y3YGvc9rHLjZ2jc94fw==","signatures":[{"sig":"MEYCIQDSKoLKJOiKK1vBgvl8/guEJgJLaD+KXlgUvov/vMjwsQIhAOyYsPP6P2EuijgGdXKis8FBJW9Z1ou84LqTeMvPJkUO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130088},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0efbfbb269a4c0bbe255a093dcc8e816741ccfa0","scripts":{"dev":"tsup --watch","lint":"oxlint src tests tsup.config.ts playwright.config.ts","test":"bun test","build":"tsup","check":"bun run quality","format":"oxfmt --write src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","wp-env":"wp-env","prepare":"(simple-git-hooks || true) && bun scripts/prepare.mjs","quality":"bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","format:check":"oxfmt --check src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run check","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","oxfmt":"^0.52.0","oxlint":"^1.67.0","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1","simple-git-hooks":"^2.13.1"},"peerDependencies":{"vite":">=8"},"simple-git-hooks":{"pre-commit":"bun run quality"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.7_1781107024147_0.4630907826131392","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.8","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","_id":"@asolopovas/vite-plugin-wp@0.1.8","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"dist":{"shasum":"9cb968cd4ae518fd6bb65b699edc88fc600d8d64","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.8.tgz","fileCount":14,"integrity":"sha512-YhT/s6J5nByj/poe6mJ4MbX1ZmzEMHtCCAETZEdLC4ZnsMpTYUfxSr+k9CtvHveqsULZY4mpJmpuZHh9ba2kwQ==","signatures":[{"sig":"MEQCIClY0b3SdMl4yq7EXaFUP7GbIBBsWCIsJuBVFVFhuM9MAiBmeioLzNDD3REP+OK8xlHdAdPd7ZmrNV/ZOTgPiDKebg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130931},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5c98699e4bc8dc21df6a150fb6deba8ec6fa0b68","scripts":{"dev":"tsup --watch","lint":"oxlint src tests tsup.config.ts playwright.config.ts","test":"bun test","build":"tsup","check":"bun run quality","format":"oxfmt --write src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","wp-env":"wp-env","prepare":"(simple-git-hooks || true) && bun scripts/prepare.mjs","quality":"bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","typecheck":"tsc --noEmit","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","wp-env:stop":"wp-env stop","format:check":"oxfmt --check src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","test:e2e:hmr":"playwright test --grep @dev","wp-env:start":"wp-env start","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","test:e2e:prod":"playwright test --grep @prod","prepublishOnly":"bun run check","wp-env:destroy":"wp-env destroy"},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"repository":{"url":"git+https://github.com/asolopovas/vite-plugin-wp.git","type":"git"},"_npmVersion":"11.6.2","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@types/react":"18.3.23","@types/lodash-es":"^4.17.12","@types/react-dom":"18.3.7","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1","@types/wordpress__block-editor":"^11.5.17"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","vite":"^8","jsdom":"^25","oxfmt":"^0.52.0","oxlint":"^1.67.0","@types/bun":"latest","typescript":"^5.6","@types/node":"^22","@wordpress/env":"^10.20.0","@playwright/test":"^1.58.1","simple-git-hooks":"^2.13.1"},"peerDependencies":{"vite":">=8"},"simple-git-hooks":{"pre-commit":"bun run quality"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-wp_0.1.8_1782772364153_0.08388773440574804","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@asolopovas/vite-plugin-wp","version":"0.1.9","description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"bun test","test:e2e":"bun run test:e2e:hmr && bun run test:e2e:prod","test:e2e:prod":"playwright test --grep @prod","test:e2e:hmr":"playwright test --grep @dev","wp-env":"wp-env","wp-env:start":"wp-env start","wp-env:stop":"wp-env stop","wp-env:destroy":"wp-env destroy","fixture:build":"bun run --cwd tests/fixtures/host-plugin build","fixture:dev":"bun run --cwd tests/fixtures/host-plugin dev","typecheck":"tsc --noEmit","lint":"oxlint src tests tsup.config.ts playwright.config.ts","format":"oxfmt --write src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","format:check":"oxfmt --check src tests tsup.config.ts playwright.config.ts package.json tsconfig.json .oxfmtrc.json","quality":"bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test","check":"bun run quality","prepare":"(simple-git-hooks || true) && bun scripts/prepare.mjs","prepublishOnly":"bun run check"},"keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"author":{"name":"Andrius Solopovas"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/asolopovas/vite-plugin-wp.git"},"engines":{"node":">=20"},"peerDependencies":{"vite":">=8"},"dependencies":{"@types/lodash-es":"^4.17.12","@types/react":"18.3.23","@types/react-dom":"18.3.7","@types/wordpress__block-editor":"^11.5.17","@types/wordpress__blocks":"^12.5.18","@types/wordpress__element":"^2.14.1"},"devDependencies":{"@playwright/test":"^1.58.1","@types/bun":"latest","@types/node":"^22","@wordpress/env":"^10.20.0","jsdom":"^25","oxfmt":"^0.52.0","oxlint":"^1.67.0","simple-git-hooks":"^2.13.1","tsup":"^8","typescript":"^5.6","vite":"^8"},"publishConfig":{"access":"public"},"simple-git-hooks":{"pre-commit":"bun run quality"},"gitHead":"99600cfde00cc35bf911141948a4445a3b81eabf","_id":"@asolopovas/vite-plugin-wp@0.1.9","bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-9VuRrgPlMxoLyZ339nR+SnKo8pAAibEokPrSmhS+Wf7SgIYwrgPCTFwoAZUdiJalYZwBqXBIWxMf6z3mnap70w==","shasum":"6c37c244db37dfad921b822caaaad7418b6e7800","tarball":"https://registry.npmjs.org/@asolopovas/vite-plugin-wp/-/vite-plugin-wp-0.1.9.tgz","fileCount":14,"unpackedSize":138178,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCFJsCln7E5/A0SHjrYLfSOSkQefkEXSCK29Ks10+JKNwIhAL4vqqYS1vCZf5iKGn3NUvl5XcBale5f0TH0e/rr6t9Y"}]},"_npmUser":{"name":"asolopovas","email":"andrius.solopovas@gmail.com"},"directories":{},"maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-wp_0.1.9_1782815452412_0.6679909494324934"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-08T07:48:26.769Z","modified":"2026-06-30T10:30:52.691Z","0.1.0":"2026-04-08T07:48:26.983Z","0.1.1":"2026-04-08T08:17:07.192Z","0.1.2":"2026-04-08T08:39:16.879Z","0.1.3":"2026-04-09T19:29:24.361Z","0.1.4":"2026-04-17T11:26:14.850Z","0.1.5":"2026-04-17T11:37:38.967Z","0.1.6":"2026-06-10T15:41:10.285Z","0.1.7":"2026-06-10T15:57:04.309Z","0.1.8":"2026-06-29T22:32:44.289Z","0.1.9":"2026-06-30T10:30:52.560Z"},"bugs":{"url":"https://github.com/asolopovas/vite-plugin-wp/issues"},"author":{"name":"Andrius Solopovas"},"license":"MIT","homepage":"https://github.com/asolopovas/vite-plugin-wp#readme","keywords":["vite","vite-plugin","wordpress","gutenberg","blocks","hmr"],"repository":{"type":"git","url":"git+https://github.com/asolopovas/vite-plugin-wp.git"},"description":"Vite plugin for WordPress block and theme development with HMR, WP global shimming, and dev-mode env sync.","maintainers":[{"name":"asolopovas","email":"andrius.solopovas@gmail.com"}],"readme":"# @asolopovas/vite-plugin-wp\n\n[![npm](https://img.shields.io/npm/v/@asolopovas/vite-plugin-wp.svg)](https://www.npmjs.com/package/@asolopovas/vite-plugin-wp)\n[![license](https://img.shields.io/npm/l/@asolopovas/vite-plugin-wp.svg)](./LICENSE)\n\nVite plugin for WordPress block/theme builds. It rewrites `@wordpress/*` imports to `wp.*`, shims React/lodash to WordPress globals, writes a dev hot file, syncs `VITE_MODE`, and enables per-block editor HMR.\n\n## Requirements\n\n- Node `>=20`\n- Vite `>=8`\n- WordPress page with standard `wp.*` globals\n\n## Install\n\n```bash\nnpm i -D @asolopovas/vite-plugin-wp\nbun add -D @asolopovas/vite-plugin-wp\n```\n\n## Usage\n\n```ts\nimport { defineConfig } from 'vite'\nimport wpPlugin from '@asolopovas/vite-plugin-wp'\n\nexport default defineConfig({\n    plugins: [\n        wpPlugin({\n            input: ['src/styles/blocks.css', 'src/blocks/index.ts'],\n        }),\n    ],\n})\n```\n\nYour PHP loader should:\n\n- In dev, read `static/build/hot` and enqueue `@vite/client` plus entries from that URL.\n- In prod, read `static/build/manifest.json` and enqueue built assets.\n- Enqueue JS entries and `@vite/client` as `type=\"module\"` scripts.\n\n## Behavior\n\n| Feature | Behavior |\n|---|---|\n| WP imports | `@wordpress/*` becomes `wp.*`; `@wordpress/icons` stays bundled |\n| React/lodash | `react`, `react-dom`, `react/jsx-runtime`, `lodash`, `lodash-es` resolve to shims |\n| Block HMR | Entries containing `blocks/index`, `editor`, or `vite-blocks` get `registerBlockType` HMR wrappers |\n| Hot file | `vite dev` writes the dev server URL to `static/build/hot` and removes it on exit |\n| Env sync | `vite dev` sets `VITE_MODE=development` in `.env` and restores `production` on exit |\n| Aliases | Adds `@src`, `@store`, `@blocks`, `@icons`, `@lib` |\n\nDev import rewrites happen in `transform`; build rewrites happen in `renderChunk` so WordPress packages stay external.\n\n## Options\n\n| Option | Type | Default | Description |\n|---|---|---|---|\n| `input` | `string \\| string[]` | Vite/Rollup default | Rollup entry points |\n| `outDir` | `string` | `static/build` | Build output directory |\n| `manifest` | `string \\| boolean` | `manifest.json` | Vite manifest setting |\n| `assetsInlineLimit` | `number` | `0` | Keep assets as files for PHP/manifest loading |\n| `base` | `string` | Vite default | Asset URL prefix |\n| `debugHmr` | `boolean` | `false` | Log block HMR events |\n| `hmrDebounceMs` | `number` | `100` | Block re-register debounce |\n| `envFile` | `string` | `.env` | Env sync target |\n| `syncViteMode` | `boolean` | `true` | Toggle `VITE_MODE` sync |\n| `hotFile` | `string` | `static/build/hot` | Dev-server URL file |\n| `editorCss` | `string` | `/src/styles/vite-blocks-editor.css` | Editor entry stylesheet handled by block HMR |\n\n## Full config\n\n```ts\nimport { defineConfig } from 'vite'\nimport wpPlugin from '@asolopovas/vite-plugin-wp'\n\nexport default defineConfig({\n    plugins: [\n        wpPlugin({\n            input: [\n                'src/styles/editor.css',\n                'src/styles/frontend.css',\n                'src/blocks/index.ts',\n            ],\n            outDir: 'assets/dist',\n            hotFile: 'assets/dist/hot',\n            base: '/wp-content/plugins/my-plugin/assets/dist/',\n            debugHmr: true,\n        }),\n    ],\n})\n```\n\n```ts\nimport { registerBlockType } from '@wordpress/blocks'\nimport { useBlockProps } from '@wordpress/block-editor'\nimport { useState } from 'react'\nimport metadata from './my-block/block.json'\nimport Edit from './my-block/edit'\nimport save from './my-block/save'\n\nregisterBlockType(metadata.name, { edit: Edit, save })\n```\n\n## Repository docs\n\nSee `AGENTS.md` and `docs/README.md`.\n\n## Status\n\nExperimental. Pin versions and report issues with reproductions.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}