Skip to content

Commit

Permalink
chore: update babel.transformSync import due to compiled cjs
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Mar 16, 2022
1 parent 06eba47 commit 35d0def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import tar from "tar-fs";
import * as semver from "semver";
import sortPackageJSON from "sort-package-json";
import glob from "fast-glob";
import babel from "@babel/core";
import { transformSync } from "@babel/core";
// @ts-expect-error these modules dont have types
import babelPluginSyntaxJSX from "@babel/plugin-syntax-jsx";
// @ts-expect-error these modules dont have types
Expand Down Expand Up @@ -422,7 +422,7 @@ async function detectTemplateType(
}

function untype(filename: string, ts: string): string {
const result = babel.transformSync(ts, {
const result = transformSync(ts, {
filename,
presets: [[babelPresetTypeScript, { jsx: "preserve" }]],
plugins: [babelPluginSyntaxJSX],
Expand Down

0 comments on commit 35d0def

Please sign in to comment.