@lectro/enhancer-commonutils v1.1.2-alpha-13
Lectro Enhancer Commonutils
Add these Common functions in your global scope of your Node Application
fetch
The function will not be added in the scope until it is used anywhere, so you can use any of the above function, only the used function will be added in the code
Usage
- Install the module
yarn add @lectro/enhancer-flowruntime - Create a devserver file
dev.jswith the following contents
const Lectro = require('@lectro/enhancer-flowruntime');
const lectro = new Lectro
lectro.dev()Use
node dev.jsto run devserverThis will run the contents of
src/index.jsfile with all the necessary polyfillsTo combine
Enchancer-Commonutilswith other lectro enhancements follow this
const EnchancerFlowruntime = require('@lectro/enhancer-flowruntime')
const EnhancerCommonutils = require('@lectro/enhancer-commonutils')
const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)
lectro.dev()- To build your bundle
const EnhancerCommonutils = require('@lectro/enhancer-commonutils')
const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)
const lectro = new EnhancerCommonutils
// or this if you want to combine with other enhancer
const EnchancerFlowruntime = require('@lectro/enhancer-flowruntime')
const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)
lectro.build()Use
node build.jsto run buildThis will build the contents of
src/index.jsfile with all the necessary polyfills tobuild/main.js.
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago