CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-es2015-sticky-regex

Babel plugin that transforms ES2015 sticky regex literals to ES5-compatible RegExp constructor calls

Overall
score

100%

Overview
Eval results
Files

Evaluation results

100%

Sticky Regex Build Support

Enable via Babel config entry transform-sticky-regex with @babel/core peer requirement

Criteria
Without context
With context

Config entry

100%

100%

Babel core usage

100%

100%

Sticky rewrite

100%

100%

Non-sticky untouched

100%

100%

98%

18%

Sticky Regex Rewriter

Babel plugin factory with Babel 7 version assertion

Criteria
Without context
With context

Plugin usage

100%

100%

Version gate

0%

90%

Sticky rewrite

100%

100%

Flag fidelity

100%

100%

Passthrough

100%

100%

Literal scope

100%

100%

100%

Sticky Regex Transpiler

Emit pattern and flags as string literals to avoid raw pattern mutation

Criteria
Without context
With context

Plugin configured

100%

100%

Sticky rewritten

100%

100%

Flags preserved

100%

100%

Non-sticky intact

100%

100%

Core API use

100%

100%

100%

Non-Sticky Regex Pass-Through

Skip transformation for non-sticky regex literals

Criteria
Without context
With context

Uses plugin

100%

100%

Babel API

100%

100%

Plain literals intact

100%

100%

Non-sticky flags kept

100%

100%

Sticky transformed

100%

100%

100%

Sticky Regex Rewriter

Rewrite sticky regex literals to RegExp constructor preserving pattern and flags

Criteria
Without context
With context

Plugin use

100%

100%

Sticky rewrite

100%

100%

Flag preservation

100%

100%

Non-sticky passthrough

100%

100%

Constructor untouched

100%

100%

100%

Sticky Regex Literal Normalizer

Scope limited to regex literals; RegExp constructor calls remain unchanged

Criteria
Without context
With context

Plugin wiring

100%

100%

Sticky rewrite

100%

100%

Flag preservation

100%

100%

Non-sticky untouched

100%

100%

RegExp constructors

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-babel-plugin-transform-es2015-sticky-regex
Evaluated
Agent
Codex

Table of Contents