Skip to content

Commit

Permalink
fix: css import (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBuxbaum authored Jul 7, 2021
1 parent d4d7ea4 commit 8dcab5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default {
renderChunk(code, _, { format }) {
return (
(format === 'cjs'
? '"use strict";\nrequire("./Layout.css");\n'
: 'import "./Layout.css";\n') + code.replace(/^'use strict';/, '')
? '"use strict";\nrequire("./index.css");\n'
: 'import "./index.css";\n') + code.replace(/^'use strict';/, '')
);
},
},
Expand Down

0 comments on commit 8dcab5f

Please sign in to comment.