Skip to content

Commit 600aa7a

Browse files
committed
fix: add temporary eslint config to let css import in tsx
1 parent c3aecd2 commit 600aa7a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rollup.config.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import typescript from "@rollup/plugin-typescript";
44
import del from "rollup-plugin-delete";
55
import svgr from "@svgr/rollup";
66
import commonjs from "@rollup/plugin-commonjs";
7-
import css from "rollup-plugin-import-css";
7+
import postcss from "rollup-plugin-postcss";
8+
import { eslint } from "rollup-plugin-eslint";
89

910
export default [
1011
// CommonJS
@@ -37,7 +38,14 @@ export default [
3738
"node_modules/react-is/index.js": ["isFragment", "useMemo", "isMemo"]
3839
}
3940
}),
40-
css()
41+
postcss({
42+
extensions: [".css"]
43+
}),
44+
eslint({
45+
exclude: [
46+
"src/**"
47+
]
48+
}),
4149
],
4250
external: ["lodash"]
4351
},

0 commit comments

Comments
 (0)