Babel plugin that compiles ES2015 default and rest parameters to ES5-compatible code
91
{
"context": "This criteria evaluates how well the engineer uses @babel/register and related Babel packages to set up on-the-fly compilation in Node.js, including proper configuration, source map support, and file filtering.",
"type": "weighted_checklist",
"checklist": [
{
"name": "@babel/register usage",
"description": "Uses the require('@babel/register') or register() function to set up the on-the-fly compilation hooks",
"max_score": 25
},
{
"name": "Preset configuration",
"description": "Configures @babel/preset-env in the register options (either inline or via .babelrc) to enable modern JavaScript transformation",
"max_score": 20
},
{
"name": "File filtering",
"description": "Uses the 'ignore' or 'only' option to configure which files should be compiled (e.g., only: [/src/, /lib/], ignore: [/node_modules/])",
"max_score": 20
},
{
"name": "Source map support",
"description": "Enables source map support either through @babel/register's sourceMaps option or by requiring 'source-map-support/register'",
"max_score": 20
},
{
"name": "Proper hook timing",
"description": "Ensures the compilation hooks are registered before requiring/importing modules that need compilation",
"max_score": 15
}
]
}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