Skip to content

Commit

Permalink
fix: dont use reload policy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
deckchairlabs committed Jul 28, 2023
1 parent 0240b44 commit d5b632a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compiler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { VERSION } from "../version.ts";
import { cache, toFileUrl } from "./deps.ts";
import { instantiate } from "./swc_mesozoic.generated.js";
import { cache, RELOAD_POLICY, toFileUrl } from "./deps.ts";
import type { Policy } from "./types.ts";
import { VERSION } from "../version.ts";

export type CompilerOptions = {
jsxImportSource?: string;
Expand All @@ -11,7 +11,7 @@ export type CompilerOptions = {

let compiler: Awaited<ReturnType<typeof instantiate>> | undefined;

export async function createCompiler(policy: Policy | undefined = RELOAD_POLICY) {
export async function createCompiler(policy: Policy | undefined = undefined) {
if (!compiler) {
const url = new URL("./swc_mesozoic_bg.wasm", import.meta.url);
const file = await cache(
Expand Down

0 comments on commit d5b632a

Please sign in to comment.