svelte-intlayer 8.7.0 → 8.7.1-canary-1

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.
Files changed (2) hide show
  1. package/dist/plugins.js +19 -13
  2. package/package.json +7 -7
package/dist/plugins.js CHANGED
@@ -27,27 +27,33 @@ const TREE_SHAKE_INSERTION = process.env['INTLAYER_NODE_TYPE_INSERTION'] === 'fa
27
27
  * True when the editor is explicitly disabled at build time.
28
28
  */
29
29
  const TREE_SHAKE_EDITOR = process.env['INTLAYER_EDITOR_ENABLED'] === 'false';
30
- // Lazy pre-load heavy modules — creates separate code-split chunks
30
+ // Lazy pre-load heavy modules — creates separate code-split chunks.
31
+ // Guarded by tree-shake constants so bundlers can eliminate the dynamic import()
32
+ // entirely when the feature is disabled at build time.
31
33
  let _getMarkdownMetadata = null;
32
34
  let _compile = null;
33
- void import('@intlayer/core/markdown').then((m) => {
34
- _getMarkdownMetadata = m.getMarkdownMetadata;
35
- _compile = m.compile;
36
- });
37
35
  let _MarkdownMetadataRenderer = null;
38
36
  let _MarkdownMetadataWithSelector = null;
39
37
  let _MarkdownRenderer = null;
40
38
  let _MarkdownWithSelector = null;
41
39
  let _svelteHtmlRuntime = null;
42
40
  let _HTMLWithSelector = null;
43
- void Promise.all([
44
- import('./markdown/MarkdownMetadataRenderer.svelte').then((m) => (_MarkdownMetadataRenderer = m.default)),
45
- import('./markdown/MarkdownMetadataWithSelector.svelte').then((m) => (_MarkdownMetadataWithSelector = m.default)),
46
- import('./markdown/MarkdownRenderer.svelte').then((m) => (_MarkdownRenderer = m.default)),
47
- import('./markdown/MarkdownWithSelector.svelte').then((m) => (_MarkdownWithSelector = m.default)),
48
- import('./html/HTMLWithSelector.svelte').then((m) => (_HTMLWithSelector = m.default)),
49
- import('./markdown/runtime').then((m) => (_svelteHtmlRuntime = m.svelteHtmlRuntime)),
50
- ]);
41
+ if (!TREE_SHAKE_MARKDOWN) {
42
+ void import('@intlayer/core/markdown').then((m) => {
43
+ _getMarkdownMetadata = m.getMarkdownMetadata;
44
+ _compile = m.compile;
45
+ });
46
+ void Promise.all([
47
+ import('./markdown/MarkdownMetadataRenderer.svelte').then((m) => (_MarkdownMetadataRenderer = m.default)),
48
+ import('./markdown/MarkdownMetadataWithSelector.svelte').then((m) => (_MarkdownMetadataWithSelector = m.default)),
49
+ import('./markdown/MarkdownRenderer.svelte').then((m) => (_MarkdownRenderer = m.default)),
50
+ import('./markdown/MarkdownWithSelector.svelte').then((m) => (_MarkdownWithSelector = m.default)),
51
+ import('./markdown/runtime').then((m) => (_svelteHtmlRuntime = m.svelteHtmlRuntime)),
52
+ ]);
53
+ }
54
+ if (!TREE_SHAKE_HTML) {
55
+ void import('./html/HTMLWithSelector.svelte').then((m) => (_HTMLWithSelector = m.default));
56
+ }
51
57
  /**
52
58
  * Basic Intlayer node plugins for content handling
53
59
  * These handle the core content transformation logic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-intlayer",
3
- "version": "8.7.0",
3
+ "version": "8.7.1-canary-1",
4
4
  "description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
5
5
  "keywords": [
6
6
  "intlayer",
@@ -82,11 +82,11 @@
82
82
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
83
83
  },
84
84
  "dependencies": {
85
- "@intlayer/api": "8.7.0",
86
- "@intlayer/config": "8.7.0",
87
- "@intlayer/core": "8.7.0",
88
- "@intlayer/editor": "8.7.0",
89
- "@intlayer/types": "8.7.0"
85
+ "@intlayer/api": "8.7.1-canary-1",
86
+ "@intlayer/config": "8.7.1-canary-1",
87
+ "@intlayer/core": "8.7.1-canary-1",
88
+ "@intlayer/editor": "8.7.1-canary-1",
89
+ "@intlayer/types": "8.7.1-canary-1"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@sveltejs/adapter-auto": "7.0.1",
@@ -99,7 +99,7 @@
99
99
  "rimraf": "6.1.3",
100
100
  "svelte": "5.55.2",
101
101
  "svelte-check": "4.4.6",
102
- "tsdown": "0.21.7",
102
+ "tsdown": "0.21.8",
103
103
  "typescript": "6.0.2",
104
104
  "vite": "8.0.8",
105
105
  "vitest": "4.1.4"