@teambit/bundler 0.0.817 → 0.0.820

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.
@@ -144,13 +144,14 @@ export class DevServerService implements EnvService<ComponentServer, DevServerDe
144
144
  context.relatedContexts = additionalContexts.map((ctx) => ctx.envDefinition.id);
145
145
  context.components = context.components.concat(this.getComponentsFromContexts(additionalContexts));
146
146
  const peers = await this.dependencyResolver.getPeerDependenciesListFromEnv(context.env);
147
+ const hostRootDir = context.envRuntime.envAspectDefinition?.aspectPath;
147
148
 
148
149
  return Object.assign(context, {
149
150
  entry: await getEntry(context, this.runtimeSlot),
150
151
  // don't start with a leading "/" because it generates errors on Windows
151
152
  rootPath: `preview/${context.envRuntime.id}`,
152
153
  publicPath: `${sep}public`,
153
- hostRootDir: context.envRuntime.envAspectDefinition.aspectPath,
154
+ hostRootDir,
154
155
  hostDependencies: peers,
155
156
  aliasHostDependencies: true,
156
157
  });
@@ -179,15 +179,18 @@ class DevServerService {
179
179
 
180
180
 
181
181
  async buildContext(context, additionalContexts = []) {
182
+ var _context$envRuntime$e;
183
+
182
184
  context.relatedContexts = additionalContexts.map(ctx => ctx.envDefinition.id);
183
185
  context.components = context.components.concat(this.getComponentsFromContexts(additionalContexts));
184
186
  const peers = await this.dependencyResolver.getPeerDependenciesListFromEnv(context.env);
187
+ const hostRootDir = (_context$envRuntime$e = context.envRuntime.envAspectDefinition) === null || _context$envRuntime$e === void 0 ? void 0 : _context$envRuntime$e.aspectPath;
185
188
  return Object.assign(context, {
186
189
  entry: await (0, _getEntry().getEntry)(context, this.runtimeSlot),
187
190
  // don't start with a leading "/" because it generates errors on Windows
188
191
  rootPath: `preview/${context.envRuntime.id}`,
189
192
  publicPath: `${_path().sep}public`,
190
- hostRootDir: context.envRuntime.envAspectDefinition.aspectPath,
193
+ hostRootDir,
191
194
  hostDependencies: peers,
192
195
  aliasHostDependencies: true
193
196
  });
@@ -1 +1 @@
1
- {"version":3,"names":["DevServerService","constructor","pubsub","dependencyResolver","runtimeSlot","render","env","context","descriptor","getDescriptor","id","displayName","version","highlight","config","language","ignoreIllegals","environment","getDevServer","undefined","mergedContext","buildContext","devServer","icon","displayConfig","runOnce","contexts","dedicatedEnvDevServers","groupedEnvs","dedupEnvs","servers","Promise","all","Object","entries","map","contextList","mainContext","find","envDefinition","additionalContexts","filter","devServerContext","envRuntime","ComponentServer","mergeContext","getComponentsFromContexts","flatten","components","relatedContexts","ctx","concat","peers","getPeerDependenciesListFromEnv","assign","entry","getEntry","rootPath","publicPath","sep","hostRootDir","envAspectDefinition","aspectPath","hostDependencies","aliasHostDependencies"],"sources":["dev-server.service.tsx"],"sourcesContent":["import { EnvService, ExecutionContext, EnvDefinition } from '@teambit/envs';\nimport { PubsubMain } from '@teambit/pubsub';\nimport { flatten } from 'lodash';\nimport React from 'react';\nimport { Text, Newline } from 'ink';\nimport { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport highlight from 'cli-highlight';\nimport { sep } from 'path';\nimport { BrowserRuntimeSlot } from './bundler.main.runtime';\nimport { ComponentServer } from './component-server';\nimport { dedupEnvs } from './dedup-envs';\nimport { DevServer } from './dev-server';\nimport { DevServerContext } from './dev-server-context';\nimport { getEntry } from './get-entry';\n\nexport type DevServerServiceOptions = { dedicatedEnvDevServers?: string[] };\n\nexport type DevServerDescriptor = {\n /**\n * id of the dev server (e.g. jest/mocha)\n */\n id: string;\n\n /**\n * display name of the dev server (e.g. Jest / Mocha)\n */\n displayName: string;\n\n /**\n * icon of the configured dev server.\n */\n icon: string;\n\n /**\n * string containing the config for display.\n */\n config: string;\n\n version?: string;\n};\n\nexport class DevServerService implements EnvService<ComponentServer, DevServerDescriptor> {\n name = 'dev server';\n\n constructor(\n /**\n * browser runtime slot\n */\n private pubsub: PubsubMain,\n\n private dependencyResolver: DependencyResolverMain,\n\n /**\n * browser runtime slot\n */\n private runtimeSlot: BrowserRuntimeSlot\n ) {}\n\n async render(env: EnvDefinition, context: ExecutionContext[]) {\n const descriptor = await this.getDescriptor(env, context);\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured dev server: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text underline color=\"cyan\">\n dev server config:\n </Text>\n <Newline />\n <Text>\n {/* refactor a separate component which highlights for cli */}\n {highlight(descriptor?.config || '', { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n async getDescriptor(\n environment: EnvDefinition,\n context?: ExecutionContext[]\n ): Promise<DevServerDescriptor | undefined> {\n if (!environment.env.getDevServer || !context) return undefined;\n const mergedContext = await this.buildContext(context[0], []);\n const devServer: DevServer = environment.env.getDevServer(mergedContext);\n\n return {\n id: devServer.id || '',\n displayName: devServer.displayName || '',\n icon: devServer.icon || '',\n config: devServer.displayConfig ? devServer.displayConfig() : '',\n version: devServer.version ? devServer.version() : '?',\n };\n }\n\n // async run(context: ExecutionContext): Promise<ComponentServer[]> {\n // const devServerContext = await this.buildContext(context);\n // const devServer: DevServer = context.env.getDevServer(devServerContext);\n // const port = await selectPort();\n // // TODO: refactor to replace with a component server instance.\n // return new ComponentServer(this.pubsub, context, port, devServer);\n // }\n\n async runOnce(\n contexts: ExecutionContext[],\n { dedicatedEnvDevServers }: DevServerServiceOptions\n ): Promise<ComponentServer[]> {\n const groupedEnvs = await dedupEnvs(contexts, this.dependencyResolver, dedicatedEnvDevServers);\n\n const servers = await Promise.all(\n Object.entries(groupedEnvs).map(async ([id, contextList]) => {\n const mainContext = contextList.find((context) => context.envDefinition.id === id) || contextList[0];\n const additionalContexts = contextList.filter((context) => context.envDefinition.id !== id);\n\n const devServerContext = await this.buildContext(mainContext, additionalContexts);\n const devServer: DevServer = await devServerContext.envRuntime.env.getDevServer(devServerContext);\n\n return new ComponentServer(this.pubsub, devServerContext, [3300, 3400], devServer);\n })\n );\n\n return servers;\n }\n\n mergeContext() {}\n\n private getComponentsFromContexts(contexts: ExecutionContext[]) {\n return flatten(\n contexts.map((context) => {\n return context.components;\n })\n );\n }\n\n /**\n * builds the execution context for the dev server.\n */\n private async buildContext(\n context: ExecutionContext,\n additionalContexts: ExecutionContext[] = []\n ): Promise<DevServerContext> {\n context.relatedContexts = additionalContexts.map((ctx) => ctx.envDefinition.id);\n context.components = context.components.concat(this.getComponentsFromContexts(additionalContexts));\n const peers = await this.dependencyResolver.getPeerDependenciesListFromEnv(context.env);\n\n return Object.assign(context, {\n entry: await getEntry(context, this.runtimeSlot),\n // don't start with a leading \"/\" because it generates errors on Windows\n rootPath: `preview/${context.envRuntime.id}`,\n publicPath: `${sep}public`,\n hostRootDir: context.envRuntime.envAspectDefinition.aspectPath,\n hostDependencies: peers,\n aliasHostDependencies: true,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AA4BO,MAAMA,gBAAN,CAAmF;EAGxFC,WAAW;EACT;AACJ;AACA;EACYC,MAJC,EAMDC,kBANC;EAQT;AACJ;AACA;EACYC,WAXC,EAYT;IAAA,KARQF,MAQR,GARQA,MAQR;IAAA,KANQC,kBAMR,GANQA,kBAMR;IAAA,KADQC,WACR,GADQA,WACR;IAAA,8CAdK,YAcL;EAAE;;EAEQ,MAANC,MAAM,CAACC,GAAD,EAAqBC,OAArB,EAAkD;IAC5D,MAAMC,UAAU,GAAG,MAAM,KAAKC,aAAL,CAAmBH,GAA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AAG,CAAE;;EAETC,yBAAyB,CAACpB,QAAD,EAA+B;IAC9D,OAAO,IAAAqB,iBAAA,EACLrB,QAAQ,CAACS,GAAT,CAAc5B,OAAD,IAAa;MACxB,OAAOA,OAAO,CAACyC,UAAf;IACD,CAFD,CADK,CAAP;EAKD;EAED;AACF;AACA;;;EAC4B,MAAZ3B,YAAY,CACxBd,OADwB,EAExBiC,kBAAsC,GAAG,EAFjB,EAGG;IAC3BjC,OAAO,CAAC0C,eAAR,GAA0BT,kBAAkB,CAACL,GAAnB,CAAwBe,GAAD,IAASA,GAAG,CAACX,aAAJ,CAAkB7B,EAAlD,CAA1B;IACAH,OAAO,CAACyC,UAAR,GAAqBzC,OAAO,CAACyC,UAAR,CAAmBG,MAAnB,CAA0B,KAAKL,yBAAL,CAA+BN,kBAA/B,CAA1B,CAArB;IACA,MAAMY,KAAK,GAAG,MAAM,KAAKjD,kBAAL,CAAwBkD,8BAAxB,CAAuD9C,OAAO,CAACD,GAA/D,CAApB;IAEA,OAAO2B,MAAM,CAACqB,MAAP,CAAc/C,OAAd,EAAuB;MAC5BgD,KAAK,EAAE,MAAM,IAAAC,oBAAA,EAASjD,OAAT,EAAkB,KAAKH,WAAvB,CADe;MAE5B;MACAqD,QAAQ,EAAG,WAAUlD,OAAO,CAACoC,UAAR,CAAmBjC,EAAG,EAHf;MAI5BgD,UAAU,EAAG,GAAEC,WAAI,QAJS;MAK5BC,WAAW,EAAErD,OAAO,CAACoC,UAAR,CAAmBkB,mBAAnB,CAAuCC,UALxB;MAM5BC,gBAAgB,EAAEX,KANU;MAO5BY,qBAAqB,EAAE;IAPK,CAAvB,CAAP;EASD;;AAnHuF"}
1
+ {"version":3,"names":["DevServerService","constructor","pubsub","dependencyResolver","runtimeSlot","render","env","context","descriptor","getDescriptor","id","displayName","version","highlight","config","language","ignoreIllegals","environment","getDevServer","undefined","mergedContext","buildContext","devServer","icon","displayConfig","runOnce","contexts","dedicatedEnvDevServers","groupedEnvs","dedupEnvs","servers","Promise","all","Object","entries","map","contextList","mainContext","find","envDefinition","additionalContexts","filter","devServerContext","envRuntime","ComponentServer","mergeContext","getComponentsFromContexts","flatten","components","relatedContexts","ctx","concat","peers","getPeerDependenciesListFromEnv","hostRootDir","envAspectDefinition","aspectPath","assign","entry","getEntry","rootPath","publicPath","sep","hostDependencies","aliasHostDependencies"],"sources":["dev-server.service.tsx"],"sourcesContent":["import { EnvService, ExecutionContext, EnvDefinition } from '@teambit/envs';\nimport { PubsubMain } from '@teambit/pubsub';\nimport { flatten } from 'lodash';\nimport React from 'react';\nimport { Text, Newline } from 'ink';\nimport { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport highlight from 'cli-highlight';\nimport { sep } from 'path';\nimport { BrowserRuntimeSlot } from './bundler.main.runtime';\nimport { ComponentServer } from './component-server';\nimport { dedupEnvs } from './dedup-envs';\nimport { DevServer } from './dev-server';\nimport { DevServerContext } from './dev-server-context';\nimport { getEntry } from './get-entry';\n\nexport type DevServerServiceOptions = { dedicatedEnvDevServers?: string[] };\n\nexport type DevServerDescriptor = {\n /**\n * id of the dev server (e.g. jest/mocha)\n */\n id: string;\n\n /**\n * display name of the dev server (e.g. Jest / Mocha)\n */\n displayName: string;\n\n /**\n * icon of the configured dev server.\n */\n icon: string;\n\n /**\n * string containing the config for display.\n */\n config: string;\n\n version?: string;\n};\n\nexport class DevServerService implements EnvService<ComponentServer, DevServerDescriptor> {\n name = 'dev server';\n\n constructor(\n /**\n * browser runtime slot\n */\n private pubsub: PubsubMain,\n\n private dependencyResolver: DependencyResolverMain,\n\n /**\n * browser runtime slot\n */\n private runtimeSlot: BrowserRuntimeSlot\n ) {}\n\n async render(env: EnvDefinition, context: ExecutionContext[]) {\n const descriptor = await this.getDescriptor(env, context);\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured dev server: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text underline color=\"cyan\">\n dev server config:\n </Text>\n <Newline />\n <Text>\n {/* refactor a separate component which highlights for cli */}\n {highlight(descriptor?.config || '', { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n async getDescriptor(\n environment: EnvDefinition,\n context?: ExecutionContext[]\n ): Promise<DevServerDescriptor | undefined> {\n if (!environment.env.getDevServer || !context) return undefined;\n const mergedContext = await this.buildContext(context[0], []);\n const devServer: DevServer = environment.env.getDevServer(mergedContext);\n\n return {\n id: devServer.id || '',\n displayName: devServer.displayName || '',\n icon: devServer.icon || '',\n config: devServer.displayConfig ? devServer.displayConfig() : '',\n version: devServer.version ? devServer.version() : '?',\n };\n }\n\n // async run(context: ExecutionContext): Promise<ComponentServer[]> {\n // const devServerContext = await this.buildContext(context);\n // const devServer: DevServer = context.env.getDevServer(devServerContext);\n // const port = await selectPort();\n // // TODO: refactor to replace with a component server instance.\n // return new ComponentServer(this.pubsub, context, port, devServer);\n // }\n\n async runOnce(\n contexts: ExecutionContext[],\n { dedicatedEnvDevServers }: DevServerServiceOptions\n ): Promise<ComponentServer[]> {\n const groupedEnvs = await dedupEnvs(contexts, this.dependencyResolver, dedicatedEnvDevServers);\n\n const servers = await Promise.all(\n Object.entries(groupedEnvs).map(async ([id, contextList]) => {\n const mainContext = contextList.find((context) => context.envDefinition.id === id) || contextList[0];\n const additionalContexts = contextList.filter((context) => context.envDefinition.id !== id);\n\n const devServerContext = await this.buildContext(mainContext, additionalContexts);\n const devServer: DevServer = await devServerContext.envRuntime.env.getDevServer(devServerContext);\n\n return new ComponentServer(this.pubsub, devServerContext, [3300, 3400], devServer);\n })\n );\n\n return servers;\n }\n\n mergeContext() {}\n\n private getComponentsFromContexts(contexts: ExecutionContext[]) {\n return flatten(\n contexts.map((context) => {\n return context.components;\n })\n );\n }\n\n /**\n * builds the execution context for the dev server.\n */\n private async buildContext(\n context: ExecutionContext,\n additionalContexts: ExecutionContext[] = []\n ): Promise<DevServerContext> {\n context.relatedContexts = additionalContexts.map((ctx) => ctx.envDefinition.id);\n context.components = context.components.concat(this.getComponentsFromContexts(additionalContexts));\n const peers = await this.dependencyResolver.getPeerDependenciesListFromEnv(context.env);\n const hostRootDir = context.envRuntime.envAspectDefinition?.aspectPath;\n\n return Object.assign(context, {\n entry: await getEntry(context, this.runtimeSlot),\n // don't start with a leading \"/\" because it generates errors on Windows\n rootPath: `preview/${context.envRuntime.id}`,\n publicPath: `${sep}public`,\n hostRootDir,\n hostDependencies: peers,\n aliasHostDependencies: true,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AA4BO,MAAMA,gBAAN,CAAmF;EAGxFC,WAAW;EACT;AACJ;AACA;EACYC,MAJC,EAMDC,kBANC;EAQT;AACJ;AACA;EACYC,WAXC,EAYT;IAAA,KARQF,MAQR,GARQA,MAQR;IAAA,KANQC,kBAMR,GANQA,kBAMR;IAAA,KADQC,WACR,GADQA,WACR;IAAA,8CAdK,YAcL;EAAE;;EAEQ,MAANC,MAAM,CAACC,GAAD,EAAqBC,OAArB,EAAkD;IAC5D,MAAMC,UAAU,GAAG,MAAM,KAAKC,aAAL,CAAmBH,GAAnB,EAAwBC,OAAxB,CAAzB;IACA,oBACE,+BAAC,WAAD;MAAM,GAAG,EAAEC,UAAF,aAAEA,UAAF,uBAAEA,UAAU,CAAEE;IAAvB,gBACE,+BAAC,WAAD;MAAM,KAAK,EAAC;IAAZ,6BADF,eAE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AAP;EAKD;EAED;AACF;AACA;;;EAC4B,MAAZ3B,YAAY,CACxBd,OADwB,EAExBiC,kBAAsC,GAAG,EAFjB,EAGG;IAAA;;IAC3BjC,OAAO,CAAC0C,eAAR,GAA0BT,kBAAkB,CAACL,GAAnB,CAAwBe,GAAD,IAASA,GAAG,CAACX,aAAJ,CAAkB7B,EAAlD,CAA1B;IACAH,OAAO,CAACyC,UAAR,GAAqBzC,OAAO,CAACyC,UAAR,CAAmBG,MAAnB,CAA0B,KAAKL,yBAAL,CAA+BN,kBAA/B,CAA1B,CAArB;IACA,MAAMY,KAAK,GAAG,MAAM,KAAKjD,kBAAL,CAAwBkD,8BAAxB,CAAuD9C,OAAO,CAACD,GAA/D,CAApB;IACA,MAAMgD,WAAW,4BAAG/C,OAAO,CAACoC,UAAR,CAAmBY,mBAAtB,0DAAG,sBAAwCC,UAA5D;IAEA,OAAOvB,MAAM,CAACwB,MAAP,CAAclD,OAAd,EAAuB;MAC5BmD,KAAK,EAAE,MAAM,IAAAC,oBAAA,EAASpD,OAAT,EAAkB,KAAKH,WAAvB,CADe;MAE5B;MACAwD,QAAQ,EAAG,WAAUrD,OAAO,CAACoC,UAAR,CAAmBjC,EAAG,EAHf;MAI5BmD,UAAU,EAAG,GAAEC,WAAI,QAJS;MAK5BR,WAL4B;MAM5BS,gBAAgB,EAAEX,KANU;MAO5BY,qBAAqB,EAAE;IAPK,CAAvB,CAAP;EASD;;AApHuF"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/bundler",
3
- "version": "0.0.817",
3
+ "version": "0.0.820",
4
4
  "homepage": "https://bit.dev/teambit/compilation/bundler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "bundler",
9
- "version": "0.0.817"
9
+ "version": "0.0.820"
10
10
  },
11
11
  "dependencies": {
12
12
  "cli-highlight": "2.1.9",
@@ -15,13 +15,13 @@
15
15
  "@babel/runtime": "7.12.18",
16
16
  "core-js": "^3.0.0",
17
17
  "@teambit/harmony": "0.3.3",
18
- "@teambit/envs": "0.0.817",
19
- "@teambit/builder": "0.0.817",
20
- "@teambit/component": "0.0.817",
21
- "@teambit/cli": "0.0.545",
22
- "@teambit/dependency-resolver": "0.0.817",
23
- "@teambit/graphql": "0.0.817",
24
- "@teambit/pubsub": "0.0.817",
18
+ "@teambit/envs": "0.0.820",
19
+ "@teambit/builder": "0.0.820",
20
+ "@teambit/component": "0.0.820",
21
+ "@teambit/cli": "0.0.548",
22
+ "@teambit/dependency-resolver": "0.0.820",
23
+ "@teambit/graphql": "0.0.820",
24
+ "@teambit/pubsub": "0.0.820",
25
25
  "@teambit/toolbox.network.get-port": "0.0.113"
26
26
  },
27
27
  "devDependencies": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@apollo/client": "^3.0.0",
38
- "@teambit/legacy": "1.0.328",
38
+ "@teambit/legacy": "1.0.331",
39
39
  "react-dom": "^16.8.0 || ^17.0.0",
40
40
  "react": "^16.8.0 || ^17.0.0"
41
41
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.817/dist/bundler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.817/dist/bundler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.820/dist/bundler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.820/dist/bundler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];