Registry / web-framework / babel-preset-dlight

babel-preset-dlight

JSON →
library1.0.0jsnpmunverified

Babel preset for transpiling DLight.js reactive UI components. Current stable version 1.0.0. DLight is a reactive UI framework with a compile-to-DOM approach, optimizing runtime performance by shifting work to compile time. This preset configures Babel to transform DLight JSX syntax and must be used with babel-loader or Babel CLI. It supports TypeScript out of the box. Compared to plain Babel, it eliminates runtime overhead by compiling reactive expressions directly.

npm install babel-preset-dlight
INSTALL
IMPORT
SIG · BABEL-PRESET-DLIGH
B
babel-preset-dlight
web-frameworkjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
module.exports = require('babel-preset-dlight');
import preset from 'babel-preset-dlight';
Babel presets are CommonJS based; use require().

No quickstart available due to missing README; refer to DLight.js documentation.

Debug
Known issues
gotchaPreset version 1.0.0 is freshly released; there may be undocumented breaking changes from 0.x versions.
fix
Pin to exact version and test components thoroughly.
affects: >=1.0.0 <1.0.1
deprecatedNo deprecated features explicitly documented; watch for future updates.
fix
Follow DLight changelog for migration guides.
affects: >=0.0.0
gotchaThis preset requires Babel 7 or later. Older Babel 6 is not compatible.
fix
Upgrade to @babel/core 7+.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-dlight'
Preset not installed or missing from node_modules.
fix
Run: npm install babel-preset-dlight --save-dev
Error: Plugin/Preset files are not allowed to export objects, only functions.
Incorrect import/require of preset (e.g., using ES module syntax).
fix
Use require('babel-preset-dlight') in babel.config.js
SyntaxError: Unexpected token <
DLight JSX not being transpiled because preset not applied.
fix
Add 'babel-preset-dlight' to presets in Babel config.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
@babel/corerequiredcore Babel dependency required for execution
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
babel-preset-dlight — npm install babel-preset-dlight · libregistry