Skip to content

Commit

Permalink
Use fileURLToPath for location resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Feb 14, 2022
1 parent 1ef7833 commit 153211e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { URL } from 'url';
import { URL, fileURLToPath } from 'url';

/**
* Path to CSS functions list JSON file.
*/
const location = new URL('index.json', import.meta.url).pathname;
const location = fileURLToPath(new URL('index.json', import.meta.url));

export default location;

0 comments on commit 153211e

Please sign in to comment.