Skip to content

Commit

Permalink
v4.0.3-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
protibimbok committed Sep 27, 2024
1 parent 548f9d3 commit 8748d1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "django-vite-plugin",
"version": "4.0.2",
"version": "4.0.3",
"description": "Django plugin for Vite.",
"type": "module",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion vite/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { AddressInfo } from 'net'

const BASE_DIR: string = path.dirname(
typeof __dirname === 'undefined'
? path.dirname(new URL(import.meta.url).pathname)
? // @ts-ignore
path.dirname(new URL(import.meta.url).pathname)
: __dirname,
)

Expand Down
3 changes: 2 additions & 1 deletion vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ let DJANGO_VERSION = '...'

const THIS_DIR: string =
typeof __dirname === 'undefined'
? path.dirname(new URL(import.meta.url).pathname)
? // @ts-ignore
path.dirname(new URL(import.meta.url).pathname)
: __dirname

export async function djangoVitePlugin(
Expand Down

0 comments on commit 8748d1f

Please sign in to comment.