[gatsby-plugin-vercel-builder] Use "esbuild" to build package (#10508)

Removes the two-staged `tsc` build into a single `esbuild` bundle. The `ssr-handler.ts` template file is moved to the root of the package and converted to JavaScript.
This commit is contained in:
Nathan Rajlich
2023-09-20 10:26:31 -03:00
committed by GitHub
parent b7e93524e3
commit 4b376a564a
15 changed files with 54 additions and 174 deletions

View File

@@ -0,0 +1,8 @@
const { generateVercelBuildOutputAPI3Output } = require('./dist/index.js');
exports.onPostBuild = async ({ store }) => {
await generateVercelBuildOutputAPI3Output({
// validated by `pluginOptionSchema`
gatsbyStoreState: store.getState(),
});
};