Skip to content

Commit 8fbf7dc

Browse files
try to reproduce the problem from michalkvasnicak#13
1 parent c84954c commit 8fbf7dc

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

error_case/.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": [
3+
["css-modules-transform", {
4+
"processCss": "./src/utils/processCss.js"
5+
}]
6+
]
7+
}

error_case/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "application-name",
3+
"version": "0.0.1",
4+
"dependencies": {
5+
"babel-cli": "6.10.1",
6+
"babel-plugin-css-modules-transform": "0.1.1"
7+
},
8+
"scripts": {
9+
"test": "babel src"
10+
}
11+
}

error_case/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const styles = require('./style.css');

error_case/src/style.css

Whitespace-only changes.

error_case/src/utils/processCss.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function processCss() {
2+
console.log('test');
3+
};

0 commit comments

Comments
 (0)