We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341e097 commit 49e8da1Copy full SHA for 49e8da1
packages/remix-dev/compiler/plugins/cssBundlePlugin.ts
@@ -16,23 +16,9 @@ export function cssBundlePlugin(refs: {
16
return {
17
name: pluginName,
18
async setup(build) {
19
- let preventInfiniteLoop = {};
20
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
34
35
- path: resolvedPath,
+ path: args.path,
36
namespace,
37
};
38
});
0 commit comments