Skip to content

Neutrino middleware for hot module replacement for react with typescript

License

Notifications You must be signed in to change notification settings

artfuldev/neutrino-middleware-ts-react-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neutrino React Hot TypeScript Loader Middleware

NPM version NPM downloads

neutrino-middleware-ts-react-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-ts-react-loader can be installed via the Yarn or npm clients.

Yarn

❯ yarn add neutrino-middleware-ts-react-loader

npm

❯ npm install --save neutrino-middleware-ts-react-loader

Usage

neutrino-middleware-ts-react-loader can be consumed from the Neutrino API, middleware, or presets. Require this package and plug it into Neutrino:

const typescript = require('neutrino-middleware-ts-react-loader');

neutrino.use(typescript);

Customization

neutrino-middleware-ts-react-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 named react and ts which use react-hot-loader and ts-loader respectively.

Releases

No releases published

Packages

No packages published