Skip to content

Commit

Permalink
chore: fix embeddable build
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Sep 27, 2024
1 parent 76a3e86 commit 7cb9d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-headless/src/polyfills/mitt-module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { createRequire } from 'module';
import module from 'node:module';

// @ts-ignore
const require = createRequire(import.meta.url);
const require = module.createRequire(import.meta.url);
export const mitt = require('mitt');

0 comments on commit 7cb9d26

Please sign in to comment.