From 9b58195a3cae3ba732d764966636614db3b54377 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish <mark.john.dalgleish@gmail.com> Date: Thu, 30 Mar 2023 11:13:31 +1100 Subject: [PATCH] add plugin to browser compiler --- packages/remix-dev/compiler/browserjs/compiler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/remix-dev/compiler/browserjs/compiler.ts b/packages/remix-dev/compiler/browserjs/compiler.ts index 393f7a4606f..45572c00f65 100644 --- a/packages/remix-dev/compiler/browserjs/compiler.ts +++ b/packages/remix-dev/compiler/browserjs/compiler.ts @@ -11,6 +11,7 @@ import type { CompileOptions } from "../options"; import { browserRouteModulesPlugin } from "./plugins/routes"; import { browserRouteModulesPlugin as browserRouteModulesPlugin_v2 } from "./plugins/routes_unstable"; import { cssFilePlugin } from "../plugins/cssImports"; +import { absoluteCssUrlsPlugin } from "../plugins/absoluteCssUrlsPlugin"; import { deprecatedRemixPackagePlugin } from "../plugins/deprecatedRemixPackage"; import { emptyModulesPlugin } from "../plugins/emptyModules"; import { mdxPlugin } from "../plugins/mdx"; @@ -117,6 +118,7 @@ const createEsbuildConfig = ( ? cssSideEffectImportsPlugin({ config, options }) : null, cssFilePlugin({ config, options }), + absoluteCssUrlsPlugin(), externalPlugin(/^https?:\/\//, { sideEffects: false }), mdxPlugin(config), config.future.unstable_dev