Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
resolve css modules imports (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler authored Dec 21, 2020
1 parent 0da0d98 commit 86c22ec
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 16 deletions.
212 changes: 197 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanity-codegen",
"version": "0.6.2",
"version": "0.6.3",
"private": true,
"description": "",
"repository": {
Expand All @@ -24,6 +24,7 @@
"@babel/plugin-transform-runtime": "7.12.10",
"@babel/register": "7.12.10",
"@types/prettier": "2.1.5",
"babel-plugin-css-modules-transform": "^1.6.2",
"babel-plugin-module-resolver": "4.1.0",
"regenerator-runtime": "0.13.7"
},
Expand Down
2 changes: 2 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const defaultBabelOptions = {
},
},
],
// used to resolve css module imports that are allowed in sanity projects
'css-modules-transform',
],
};

Expand Down

0 comments on commit 86c22ec

Please sign in to comment.