1.0.0 • Published 9 years ago
neutrino-middleware-react-hot-ts-loader v1.0.0
Neutrino React Hot TypeScript Loader Middleware
neutrino-middleware-react-hot-ts-loader is Neutrino middleware for hot module replacement for react with typescript.
Requirements
- Node.js v6.9+
- Yarn or npm client
- Neutrino v5
Installation
neutrino-middleware-react-hot-ts-loader can be installed via the Yarn or npm clients.
Yarn
❯ yarn add neutrino-middleware-react-hot-ts-loadernpm
❯ npm install --save neutrino-middleware-react-hot-ts-loaderUsage
neutrino-middleware-react-hot-ts-loader can be consumed from the Neutrino API, middleware, or presets. Require this package
and plug it into Neutrino:
const react_hot_typescript = require('neutrino-middleware-react-hot-ts-loader');
neutrino.use(react_hot_typescript);Customization
neutrino-middleware-react-hot-ts-loader creates some conventions to make overriding the configuration easier once you are
ready to make changes.
Rules
The following is a list of rules and their identifiers which can be overridden:
typescript: Allows react hot module replacement with typescript. Contains two loaders namedreact_hotandtswhich usereact-hot-loaderandts-loaderrespectively.
1.0.0
9 years ago