Skip to content

Commit

Permalink
fix: remove empty line in generated styles
Browse files Browse the repository at this point in the history
  • Loading branch information
marklawlor committed May 23, 2022
1 parent fc8fdc8 commit 20e6973
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/postcss/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export const plugin: PluginCreator<PostcssPluginOptions> = ({
output,
`// This file was generated by tailwindcss-react-native. Do not edit!
const { StyleSheet } = require("react-native")
module.exports = {
${platform ? `platform: '${platform},` : ""}
module.exports = { ${platform ? `\nplatform: '${platform},` : ""}
styles: ${JSON.stringify(serialized.styles).replace(
new RegExp('"hairlineWidth"', "g"),
"StyleSheet.hairlineWidth"
Expand Down

0 comments on commit 20e6973

Please sign in to comment.