We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am running some tests on Cloudflare Workers using the example in your repo. However I cant seem to get the Blocks to work.
esbuild.js:
require('esbuild').build({ bundle: true, entryPoints: ['workers-site/index.js'], outfile: 'dist/index.js', format: 'esm', plugins: [ require('tempura/esbuild').transform({ blocks: { foo(args) { return args.test } } })] });
test.hbs
{{#foo test="bar" }}
worker.js
import test from "./test.hbs" addEventListener('fetch', event => { event.respondWith(new Response(test())) })
Results in: Cannot read properties of undefined (reading 'foo')
Would it be possible to get a working example including blocks for Cloudflare Workers maybe?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am running some tests on Cloudflare Workers using the example in your repo. However I cant seem to get the Blocks to work.
esbuild.js:
test.hbs
{{#foo test="bar" }}
worker.js
Results in: Cannot read properties of undefined (reading 'foo')
Would it be possible to get a working example including blocks for Cloudflare Workers maybe?
The text was updated successfully, but these errors were encountered: