Babel plugin that compiles ES2015 default and rest parameters to ES5-compatible code
91
Build a utility that enables automatic on-the-fly compilation of modern JavaScript files when they are required in Node.js, allowing the use of latest JavaScript features without a separate build step.
Create a setup module that:
.js files containing modern JavaScript syntaxsrc/ and lib/ directories while ignoring node_modules/Create a demonstration that imports the setup and then loads a module using modern syntax.
Provides on-the-fly compilation hooks for Node.js require system.
Provides presets for transforming modern JavaScript to compatible versions.
Provides source map support for stack traces.
The setup module should register compilation hooks that:
@generates
Install with Tessl CLI
npx tessl i tessl/npm-babel--plugin-transform-parametersdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10