From 5002f0bb31f089b03ddf3b78128cd26766243b4a Mon Sep 17 00:00:00 2001
From: Owen Buckley <owenbuckley13@gmail.com>
Date: Fri, 24 May 2024 15:30:46 -0400
Subject: [PATCH] formatting

---
 plugin-css-modules.js     | 2 +-
 vite.config.js            | 6 +++++-
 web-test-runner.config.js | 3 ++-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/plugin-css-modules.js b/plugin-css-modules.js
index e53e94ea..66c74418 100644
--- a/plugin-css-modules.js
+++ b/plugin-css-modules.js
@@ -10,7 +10,7 @@ import { ResourceInterface } from "@greenwood/cli/src/lib/resource-interface.js"
 import * as acornWalk from "acorn-walk";
 import * as acorn from "acorn";
 import { hashString } from "@greenwood/cli/src/lib/hashing-utils.js";
-import { importAttributes } from 'acorn-import-attributes'; // comes from Greenwood
+import { importAttributes } from "acorn-import-attributes"; // comes from Greenwood
 
 function getCssModulesMap(compilation) {
   const locationUrl = new URL("./__css-modules-map.json", compilation.context.scratchDir);
diff --git a/vite.config.js b/vite.config.js
index b1382977..ff59b45f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -19,7 +19,11 @@ function transformConstructableStylesheetsPlugin() {
     name: "transform-css-module-scripts",
     enforce: "pre",
     resolveId: (id, importer) => {
-      if (importer?.indexOf("/src/components/") >= 0 && id.endsWith(".css") && !id.endsWith(".module.css")) {
+      if (
+        importer?.indexOf("/src/components/") >= 0 &&
+        id.endsWith(".css") &&
+        !id.endsWith(".module.css")
+      ) {
         // add .type so CSS modules are not precessed by the default pipeline
         return path.join(path.dirname(importer), `${id}.type`);
       }
diff --git a/web-test-runner.config.js b/web-test-runner.config.js
index 662dbe92..9a375a7b 100644
--- a/web-test-runner.config.js
+++ b/web-test-runner.config.js
@@ -36,7 +36,8 @@ export default {
           };
         }
       },
-    }, {
+    },
+    {
       name: "css-modules",
       async transform(context) {
         const url = new URL(`.${context.request.url}`, import.meta.url);