Skip to content

Commit 49e8da1

Browse files
fix(dev): remove unused css-bundle path resolution (#7233)
1 parent 341e097 commit 49e8da1

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

packages/remix-dev/compiler/plugins/cssBundlePlugin.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,9 @@ export function cssBundlePlugin(refs: {
1616
return {
1717
name: pluginName,
1818
async setup(build) {
19-
let preventInfiniteLoop = {};
2019
build.onResolve({ filter: /^@remix-run\/css-bundle$/ }, async (args) => {
21-
// Prevent plugin from infinitely trying to resolve itself
22-
if (args.pluginData === preventInfiniteLoop) {
23-
return null;
24-
}
25-
26-
let resolvedPath = (
27-
await build.resolve(args.path, {
28-
resolveDir: args.resolveDir,
29-
kind: args.kind,
30-
pluginData: preventInfiniteLoop,
31-
})
32-
).path;
33-
3420
return {
35-
path: resolvedPath,
21+
path: args.path,
3622
namespace,
3723
};
3824
});

0 commit comments

Comments
 (0)