Skip to content

Commit

Permalink
fix: simplified react-native import
Browse files Browse the repository at this point in the history
I forgot that Stashy was already CJS, so no need to optimize for ESM.
  • Loading branch information
Pkmmte committed Dec 29, 2023
1 parent 471c844 commit 99db52a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/backend/_base.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* © 2022 WavePlay <[email protected]>
*/
// @ts-expect-error
import type { GetServerSidePropsContext } from 'next'
import type { Stashy } from '..'
import type { Logger } from '../types'
Expand Down
4 changes: 0 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/**
* © 2023 WavePlay <[email protected]>
*/
import { createRequire } from 'module'

const require = createRequire(import.meta.url)

let Platform: any
try {
Platform = require('react-native').Platform
Expand Down

1 comment on commit 99db52a

@vercel
Copy link

@vercel vercel bot commented on 99db52a Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.