Skip to content

Commit

Permalink
Fix windows builds (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Oct 10, 2024
1 parent e06b7a3 commit f27c2e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyodide/internal/pool/esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { dirname, join } from 'node:path';
import { existsSync } from 'node:fs';
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'url';

const pyodideRootDir = dirname(
dirname(dirname(new URL(import.meta.url).pathname))
dirname(dirname(fileURLToPath(import.meta.url)))
);

let resolvePlugin = {
name: 'example',
name: 'pyodide-internal',
setup(build) {
// Redirect all paths starting with "images/" to "./public/images/"
build.onResolve({ filter: /pyodide-internal:.*/ }, (args) => {
Expand Down

0 comments on commit f27c2e1

Please sign in to comment.