Skip to content

Commit

Permalink
fix: Use client-only-require for css imports (#1115)
Browse files Browse the repository at this point in the history
* fix(imports): Use client-only-require for css imports

* fix(imports): Move client-only-require to prod plugins
  • Loading branch information
sam-kvale-sap committed Jul 1, 2020
1 parent 80eb5ee commit 2b09a3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const productionPlugins = [
{
mode: 'unsafe-wrap'
}
]
],
['client-only-require', { 'extensions': ['less', 'scss', 'css'] }]
];

module.exports = {
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"babel-eslint": "^10.1.0",
"babel-jest": "^24.8.0",
"babel-loader": "8.1.0",
"babel-plugin-client-only-require": "^1.0.1",
"babel-plugin-named-asset-import": "^0.3.2",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.23",
Expand Down

0 comments on commit 2b09a3b

Please sign in to comment.