Skip to content

Commit

Permalink
fix(dev): remove unused css-bundle path resolution (#7233)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Aug 22, 2023
1 parent 341e097 commit 49e8da1
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/remix-dev/compiler/plugins/cssBundlePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,9 @@ export function cssBundlePlugin(refs: {
return {
name: pluginName,
async setup(build) {
let preventInfiniteLoop = {};
build.onResolve({ filter: /^@remix-run\/css-bundle$/ }, async (args) => {
// Prevent plugin from infinitely trying to resolve itself
if (args.pluginData === preventInfiniteLoop) {
return null;
}

let resolvedPath = (
await build.resolve(args.path, {
resolveDir: args.resolveDir,
kind: args.kind,
pluginData: preventInfiniteLoop,
})
).path;

return {
path: resolvedPath,
path: args.path,
namespace,
};
});
Expand Down

0 comments on commit 49e8da1

Please sign in to comment.