Skip to content

Commit

Permalink
🔧 fix: add globalThis fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Rettend committed Jan 21, 2024
1 parent 72237d6 commit 8e9dbd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import * as path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'
import { merge } from 'lodash-es'
import { name } from '../package.json'
import emojis from './emojis.json'

globalThis.__eemoji_pkg__ = globalThis.__eemoji_pkg__ || {
entryDir: dirname(fileURLToPath(import.meta.url)),
}

type PipePropName<T> = T extends `${infer First}|${infer _}` ? First : T

type StringOrOptionalProp<T> = {
Expand Down

0 comments on commit 8e9dbd9

Please sign in to comment.