Skip to content

Commit

Permalink
check for processed css before reading json
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed May 18, 2022
1 parent 859eadf commit 8026a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/remix-css-modules/package.json
@@ -1,7 +1,7 @@
{
"name": "@remix-run/css-modules",
"description": "Entrypoint for stylesheets created by CSS Modules in Remix",
"version": "1.2.3",
"version": "1.4.3",
"license": "MIT",
"main": "./server.js",
"module": "./esm/server.js",
Expand All @@ -19,6 +19,6 @@
},
"dependencies": {
"@parcel/css": "^1.7.3",
"@remix-run/dev": "^1.3.3"
"@remix-run/dev": "^1.4.3"
}
}
2 changes: 1 addition & 1 deletion packages/remix-dev/compiler/plugins/cssModulesPlugin.ts
Expand Up @@ -75,7 +75,7 @@ Install the dependency by running the following command, then restart your app.
filePath: args.path,
});
return {
contents: JSON.stringify(processed.json),
contents: JSON.stringify(processed?.json || {}),
loader: "json",
};
} catch (err: any) {
Expand Down

0 comments on commit 8026a1f

Please sign in to comment.