Skip to content

Commit

Permalink
Try fixing windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 19, 2022
1 parent 1ecb53f commit 282dc4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/rollup-plugin-standalone-internals.js
@@ -1,7 +1,10 @@
import fs from "fs";

const standaloneURL = new URL("../packages/babel-standalone/", import.meta.url);
const inStandalone = path => new URL(path, standaloneURL).pathname;
const standaloneURL = new URL("../packages/babel-standalone/", import.meta.url)
.replace(/\\/g, "/")
// Remove /C:/
.replace(/^\/[A-Z]:\//, "/");
const inStandalone = path => new URL(path, standaloneURL).href;

const { noopPlugins, unexposedNoopPlugins } = JSON.parse(
fs.readFileSync(new URL("./scripts/pluginConfig.json", standaloneURL), "utf8")
Expand Down

0 comments on commit 282dc4c

Please sign in to comment.