Skip to content

Commit 21cc108

Browse files
authored
Merge pull request #35 from ef4/revert-req-change
Remove unintentional change that was part of #33
2 parents f27daf3 + 6d368cd commit 21cc108

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type * as Babel from "@babel/core";
22
import type { types as t, NodePath } from "@babel/core";
3+
import { createRequire } from "node:module";
34
import { ImportUtil, type Importer } from "babel-import-util";
45
import { globalId } from "./global-id.ts";
5-
6-
// @ts-expect-error no upstream types
7-
import decoratorSyntax from "@babel/plugin-syntax-decorators";
6+
const req = createRequire(import.meta.url);
7+
const { default: decoratorSyntax } = req("@babel/plugin-syntax-decorators");
88

99
interface State extends Babel.PluginPass {
1010
currentClassBodies: t.ClassBody[];

0 commit comments

Comments
 (0)