ts-plugin-mmlpx
Generate mmlpx ViewModel/Store name automatically, also suit for mobx actions. Compatible with ts-loader(^2.2.0) and awesome-typescript-loader(^3.1.3)
Transpilation
input
;
output
;
Configuration
;var config = module: rules: test: /\.ts$/ loader: 'ts-loader' options: transpileOnly: true compilerOptions: module: 'es2015' before: // transform Store/ViewModel of mmlpx by default // manual config mobx action
API
createTransformer
;
Options
;
Notes
As we use ${fileName}/${decoratedClassName}
as the id of Store/ViewModel, we should name our Store/ViewModel and file name more descriptive, such as UserStore.ts/UserStore.
Avoid naming file name as index.ts and Store/ViewModel as Index class, keep then unique.