3.4.1 • Published 6 years ago
react-scripts-inversify v3.4.1
react-scripts-inversify
This is a fork of react-scripts. This fork changes the tsconfig.json and webpack.config.js to retain metadata that can be used at runtime (for dependency injection for example).
To use these scripts, add --scripts-version react-scripts-inversify when creating a new app.
For example:
npx create-react-app my-app --scripts-version react-scripts-inversifyalternatively
npx create-react-app-inversify my-appChanges:
tsconfig.json
experimentalDecorators: trueemitDecoratorMetadata: true
webpack.config.js
- uses
ts-loaderrather thanbabelto compile typescript. Decorator metadata no longer removed.
This package includes scripts and configuration used by Create React App. Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.