Skip to content

Commit

Permalink
Merge pull request #35 from ef4/revert-req-change
Browse files Browse the repository at this point in the history
Remove unintentional change that was part of #33
  • Loading branch information
ef4 authored Oct 1, 2024
2 parents f27daf3 + 6d368cd commit 21cc108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type * as Babel from "@babel/core";
import type { types as t, NodePath } from "@babel/core";
import { createRequire } from "node:module";
import { ImportUtil, type Importer } from "babel-import-util";
import { globalId } from "./global-id.ts";

// @ts-expect-error no upstream types
import decoratorSyntax from "@babel/plugin-syntax-decorators";
const req = createRequire(import.meta.url);
const { default: decoratorSyntax } = req("@babel/plugin-syntax-decorators");

interface State extends Babel.PluginPass {
currentClassBodies: t.ClassBody[];
Expand Down

0 comments on commit 21cc108

Please sign in to comment.