rimecms 0.30.0 → 0.30.2

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.
@@ -1,4 +1,4 @@
1
- import { RIME_DEV_CACHE_DIR } from '../../constant.server';
1
+ import { RIME_DEV_CACHE_DIR } from '../../constant.server.js';
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
  const dev = process.env.NODE_ENV === 'development';
@@ -1,4 +1,4 @@
1
- import { RIME_DEV_CACHE_DIR } from '../../../constant.server';
1
+ import { RIME_DEV_CACHE_DIR } from '../../../constant.server.js';
2
2
  import cache from '../../cache/index.server.js';
3
3
  import { sanitize } from '../../generate/sanitize/index.server.js';
4
4
  import { ensureGeneratedConfig, ensureUserConfigExist } from '../../../ensure.server.js';
@@ -66,7 +66,12 @@ export function rime() {
66
66
  external: ['sharp']
67
67
  },
68
68
  optimizeDeps: {
69
- exclude: ['sharp'],
69
+ // rimecms/fields and rimecms/panel must not be pre-bundled: esbuild flattens
70
+ // their source files into one chunk, which erases the per-file identity that
71
+ // the $rime/runtime virtual module (see resolveId/load below) relies on to find
72
+ // each field's sibling runtime.ts/runtime.server.ts — pre-bundling makes the
73
+ // "importer" resolve to the chunk itself instead of the real source file.
74
+ exclude: ['sharp', 'rimecms', 'rimecms/fields', 'rimecms/panel'],
70
75
  include: ['@lucide/svelte']
71
76
  },
72
77
  build: {
@@ -1,4 +1,4 @@
1
- import type { FormFieldBuilder } from '../../core/fields/builders/form-field-builder';
1
+ import type { FormFieldBuilder } from '../../core/fields/builders/form-field-builder.js';
2
2
  import type { FormField } from '../../fields/types.js';
3
3
  import type { Dic } from '../../util/types.js';
4
4
  import type { SubmitFunction } from '@sveltejs/kit';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimecms",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "homepage": "https://github.com/bienbiendev/rime",
5
5
  "scripts": {
6
6
  "dev": "vite dev",