oklas / react-app-alias

:label: Alias and multiple src directory for craco or rewired create-react-app
MIT License
174 stars 18 forks source link

Support comments and trailing comma in tsconfig.json #92

Open namnm opened 1 year ago

namnm commented 1 year ago

create-react-app already supported it here: https://github.com/facebook/create-react-app/pull/7248

This can be solved using json5: https://github.com/json5/json5

require('json5/lib/register')
require.extensions['.json'] = require.extensions['.json5']