Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Mar 20, 2023
1 parent 60a4910 commit d089f9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/remix-dev/compiler/compileBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ const isCssBundlingEnabled = (config: RemixConfig): boolean =>
);

let cssBundleHrefChannel: Channel<string | undefined>;

// This function gives esbuild access to the latest channel value on rebuilds
let getCssBundleHref = () => cssBundleHrefChannel.read();

const createEsbuildConfig = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function cssBundleUpdatePlugin({
getCssBundleHref: () => Promise<string | undefined>;
}): Plugin {
return {
name: "css-bundle-update-plugin",
name: pluginName,
async setup(build) {
let isRebuild = false;
build.onEnd(() => {
Expand Down

0 comments on commit d089f9c

Please sign in to comment.