@cloudflare/vite-plugin 1.15.2 → 1.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -156,6 +156,7 @@ function getInitialWorkerNameToExportTypesMap(resolvedPluginConfig) {
|
|
|
156
156
|
* Fetches the export types for all Workers and returns them in a Map
|
|
157
157
|
*/
|
|
158
158
|
async function getCurrentWorkerNameToExportTypesMap(resolvedPluginConfig, viteDevServer, miniflare) {
|
|
159
|
+
await viteDevServer.environments.client.pluginContainer.buildStart();
|
|
159
160
|
const results = await Promise.all([...resolvedPluginConfig.environmentNameToWorkerMap].map(async ([environmentName, worker]) => {
|
|
160
161
|
debuglog(`Fetching export types for worker "${worker.config.name}"`);
|
|
161
162
|
const exportTypes = await viteDevServer.environments[environmentName].fetchWorkerExportTypes(miniflare, worker.config);
|