{"id":24967,"library":"babel-preset-dlight","title":"DLight Babel Preset","description":"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.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","dlight.js","babel-preset","typescript"],"install":[{"cmd":"npm install babel-preset-dlight","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-dlight","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-dlight","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core Babel dependency required for execution","package":"@babel/core","optional":false}],"imports":[{"note":"Babel presets are CommonJS based; use require().","wrong":"import preset from 'babel-preset-dlight';","symbol":"default","correct":"module.exports = require('babel-preset-dlight');"}],"quickstart":{"code":"","lang":"javascript","description":"No quickstart available due to missing README; refer to DLight.js documentation."},"warnings":[{"fix":"Pin to exact version and test components thoroughly.","message":"Preset version 1.0.0 is freshly released; there may be undocumented breaking changes from 0.x versions.","severity":"gotcha","affected_versions":">=1.0.0 <1.0.1"},{"fix":"Follow DLight changelog for migration guides.","message":"No deprecated features explicitly documented; watch for future updates.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Upgrade to @babel/core 7+.","message":"This preset requires Babel 7 or later. Older Babel 6 is not compatible.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install babel-preset-dlight --save-dev","cause":"Preset not installed or missing from node_modules.","error":"Error: Cannot find module 'babel-preset-dlight'"},{"fix":"Use require('babel-preset-dlight') in babel.config.js","cause":"Incorrect import/require of preset (e.g., using ES module syntax).","error":"Error: Plugin/Preset files are not allowed to export objects, only functions."},{"fix":"Add 'babel-preset-dlight' to presets in Babel config.","cause":"DLight JSX not being transpiled because preset not applied.","error":"SyntaxError: Unexpected token <"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}