Skip to content

Commit

Permalink
Merge pull request #44 from ef4/revert-37
Browse files Browse the repository at this point in the history
Revert "Don't use nodeisms"
  • Loading branch information
ef4 authored Nov 5, 2024
2 parents 33c4f6f + 3da11f9 commit 68311b0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +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 can't find declarations for this package (there aren't any)
// @ts-ignore
import { default as 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 68311b0

Please sign in to comment.