Skip to content

Commit

Permalink
prettier bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Jan 30, 2021
1 parent 790c75c commit 75505d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ const plugin = (snowpackConfig, pluginOptions = {}) => {
});

// Rewrite "proxy.js" imports prior to building
glob.sync(buildDirectory + "/**/*.js",{nodir: true}).forEach((file) => {
const resolvedImports = proxyImportResolver(
fs.readFileSync(file, "utf8")
);
fs.writeFileSync(file, resolvedImports, "utf8");
});
glob
.sync(buildDirectory + "/**/*.js", { nodir: true })
.forEach((file) => {
const resolvedImports = proxyImportResolver(
fs.readFileSync(file, "utf8")
);
fs.writeFileSync(file, resolvedImports, "utf8");
});

await rollupBuild(extendedConfig);
},
Expand Down

0 comments on commit 75505d6

Please sign in to comment.