Skip to content

Commit

Permalink
fix: make sure runtime/ is transpiled
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 22, 2024
1 parent 4b03f4b commit 77156bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ async function nitroModule(nitro: Nitro) {
persistDir,
};

// Make sure runtime is transpiled
nitro.options.externals.inline = nitro.options.externals.inline || [];
nitro.options.externals.inline.push(
fileURLToPath(new URL("runtime/", import.meta.url)),
);

// Add plugin to inject bindings to dev server
nitro.options.plugins = nitro.options.plugins || [];
nitro.options.plugins.push(
Expand Down

0 comments on commit 77156bb

Please sign in to comment.