0.6.0 • Published 5 years ago
react-server-module-tagger v0.6.0
react-server-module-tagger
A function for tagging react-server logger instances with information about the module they're being used in.
To transpile your source for use with React Server, install gulp and the plugin
npm i -D gulp react-server-module-tagger
Then require and call the function.
const tagger = require('react-server-module-tagger');
const filePath = 'path/to/my/output.js';
const opts = {label:"foo"};
const moduleTag = tagger({ filePath, trim: 'path/to', opts });
returns a logger instance that will have consistent coloring on the server and
the client, and that has a human-friendly, readable name that easily maps to
the file tree (in this example components.my-feature.foo
).
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago
1.0.0-alpha.0
5 years ago
0.6.0
7 years ago
0.4.10
8 years ago
0.4.7
8 years ago
0.4.4
8 years ago
0.3.3
8 years ago
0.0.1
8 years ago