Closed benc-uk closed 2 years ago
When I add view_engine from my app and bundle it with deno bundle then run the bundle, I get this error
deno bundle
error: Uncaught ReferenceError: exports is not defined __default9.PrecompiledLoader = exports;
This is simple code to reproduce
import { Application } from 'https://deno.land/x/oak@v6.5.0/mod.ts' import { adapterFactory, engineFactory, viewEngine } from 'https://deno.land/x/view_engine@v1.5.0/mod.ts' const app = new Application() const ejsEngine = engineFactory.getEjsEngine() const oakAdapter = adapterFactory.getOakAdapter() app.use( viewEngine(oakAdapter, ejsEngine, { viewRoot: 'src/views', viewExt: '.ejs', }) ) await app.listen({ port: '8000', hostname: '0.0.0.0' })
Please check out the newest version, thanks!
When I add view_engine from my app and bundle it with
deno bundle
then run the bundle, I get this errorThis is simple code to reproduce