target node10

This commit is contained in:
mbecker20
2022-03-20 11:05:08 -07:00
parent 6e402aca0f
commit b26210b476
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -5,8 +5,10 @@ writeFileSync(
"build/cli.js",
"#!/usr/bin/env node\n" +
contents.replace(
"Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('meow')); })",
"import(\"meow\")"
`const meow = await Promise.resolve().then(function() {
return /* @__PURE__ */ _interopNamespace(require("meow"));
});`,
'const meow = await import("meow");'
)
);
+1 -1
View File
@@ -3,7 +3,7 @@ import { defineConfig } from "vite";
export default defineConfig({
build: {
outDir: "build",
target: "esnext",
target: "node10",
ssr: true,
rollupOptions: {
input: "./src/cli.tsx",