Skip to content

Instantly share code, notes, and snippets.

@guaiamum
Last active May 28, 2020 20:05
Show Gist options
  • Save guaiamum/a29b4e832bc399a9bd2219c4afb667a8 to your computer and use it in GitHub Desktop.
Save guaiamum/a29b4e832bc399a9bd2219c4afb667a8 to your computer and use it in GitHub Desktop.
todo: combine in one replace
`"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-transform-modules-commonjs": "^7.6.0",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.4.3",
"babel-eslint": "^10.0.1",`
.replace(/"(@babel\/[a-z-]*)(.*)\n/g,'$1')
.replace(/\s+/g,' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment