An experimental babel transformer plugin for rtts_assert
An babel transformer plugin for rtts_assert, a run-time type assertion library for JavaScript.
plugins
option.)npm install -S rtts_assert babel-core babel-plugin-type-assertion
You need to transpile also rtts_assert's ES6 code.
Require hook:
require('babel-core/register')({
ignore: /node_modules\/(?!rtts_assert)/,
plugins: ['type-assertion']
});
require('your-module');
Webpack: