@lipsjs/lips 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,6 +278,17 @@ export type LipsConfig<Context extends Object = {}> = {
278
278
  * entries are separate bundles with separate module state.
279
279
  */
280
280
  stylePreprocessor?: (css: string) => string;
281
+ /**
282
+ * Plugins' components as a build compiled them (`precompilePlugins()`
283
+ * from `@lipsjs/lips/precompile`), by name: `use()` registers each
284
+ * component of a plugin with the IR made for its name, so a plugin's
285
+ * source templates run on `./runtime`, which has no compiler (RFC-008
286
+ * §4). A component with none here is registered as it is.
287
+ */
288
+ precompiled?: Readonly<Record<string, {
289
+ ir: TemplateIR;
290
+ style?: StyleIR;
291
+ }>>;
281
292
  /**
282
293
  * The MessageFormat 2 engine dictionaries are formatted with. The full
283
294
  * build wires it in; the precompiled `./runtime` entry ships without it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lipsjs/lips",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Fast, Lightweight Reactive UI Framework",
5
5
  "main": "./dist/lips.min.js",
6
6
  "types": "./dist/types/lips.d.ts",