Skip to content

Commit

Permalink
fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Oct 20, 2022
1 parent 1ecb53f commit 5add85d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/rollup-plugin-standalone-internals.js
@@ -1,8 +1,9 @@
import fs from "fs";
import { fileURLToPath } from "url";

const standaloneURL = new URL("../packages/babel-standalone/", import.meta.url);
const inStandalone = path => new URL(path, standaloneURL).pathname;

const inStandalone = path =>
fileURLToPath(new URL(path, standaloneURL)).replace(/\\/g, "/");
const { noopPlugins, unexposedNoopPlugins } = JSON.parse(
fs.readFileSync(new URL("./scripts/pluginConfig.json", standaloneURL), "utf8")
);
Expand Down

0 comments on commit 5add85d

Please sign in to comment.