@teambit/bundler 0.0.987 → 0.0.989

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.
@@ -2,9 +2,9 @@ import { EnvService, Env, EnvContext, ServiceTransformationMap } from '@teambit/
2
2
  import { Bundler } from './bundler';
3
3
  import { BundlerContext } from './bundler-context';
4
4
 
5
- type BundlerTransformationMap = ServiceTransformationMap & {
5
+ type BundlerTransformationMap = ServiceTransformationMap & {
6
6
  getBundler?: (context: BundlerContext) => Promise<Bundler>;
7
- }
7
+ };
8
8
  export class BundlerService implements EnvService<any> {
9
9
  name = 'bundler';
10
10
 
@@ -15,6 +15,6 @@ export class BundlerService implements EnvService<any> {
15
15
 
16
16
  return {
17
17
  getBundler: (context) => preview.getBundler(context)(envContext),
18
- }
18
+ };
19
19
  }
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BundlerService","transform","env","envContext","preview","undefined","getBundler","context"],"sources":["bundler.service.tsx"],"sourcesContent":["import { EnvService, Env, EnvContext, ServiceTransformationMap } from '@teambit/envs';\nimport { Bundler } from './bundler';\nimport { BundlerContext } from './bundler-context';\n\ntype BundlerTransformationMap = ServiceTransformationMap & {\n getBundler?: (context: BundlerContext) => Promise<Bundler>;\n}\nexport class BundlerService implements EnvService<any> {\n name = 'bundler';\n\n transform(env: Env, envContext: EnvContext): BundlerTransformationMap | undefined {\n // Old env\n if (!env?.preview) return undefined;\n const preview = env.preview()(envContext);\n\n return {\n getBundler: (context) => preview.getBundler(context)(envContext),\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAOO,MAAMA,cAAc,CAA4B;EAAA;IAAA,8CAC9C,SAAS;EAAA;EAEhBC,SAAS,CAACC,GAAQ,EAAEC,UAAsB,EAAwC;IAChF;IACA,IAAI,EAACD,GAAG,aAAHA,GAAG,eAAHA,GAAG,CAAEE,OAAO,GAAE,OAAOC,SAAS;IACnC,MAAMD,OAAO,GAAGF,GAAG,CAACE,OAAO,EAAE,CAACD,UAAU,CAAC;IAEzC,OAAO;MACLG,UAAU,EAAGC,OAAO,IAAKH,OAAO,CAACE,UAAU,CAACC,OAAO,CAAC,CAACJ,UAAU;IACjE,CAAC;EACH;AACF;AAAC"}
1
+ {"version":3,"names":["BundlerService","transform","env","envContext","preview","undefined","getBundler","context"],"sources":["bundler.service.tsx"],"sourcesContent":["import { EnvService, Env, EnvContext, ServiceTransformationMap } from '@teambit/envs';\nimport { Bundler } from './bundler';\nimport { BundlerContext } from './bundler-context';\n\ntype BundlerTransformationMap = ServiceTransformationMap & {\n getBundler?: (context: BundlerContext) => Promise<Bundler>;\n};\nexport class BundlerService implements EnvService<any> {\n name = 'bundler';\n\n transform(env: Env, envContext: EnvContext): BundlerTransformationMap | undefined {\n // Old env\n if (!env?.preview) return undefined;\n const preview = env.preview()(envContext);\n\n return {\n getBundler: (context) => preview.getBundler(context)(envContext),\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAOO,MAAMA,cAAc,CAA4B;EAAA;IAAA,8CAC9C,SAAS;EAAA;EAEhBC,SAAS,CAACC,GAAQ,EAAEC,UAAsB,EAAwC;IAChF;IACA,IAAI,EAACD,GAAG,aAAHA,GAAG,eAAHA,GAAG,CAAEE,OAAO,GAAE,OAAOC,SAAS;IACnC,MAAMD,OAAO,GAAGF,GAAG,CAACE,OAAO,EAAE,CAACD,UAAU,CAAC;IAEzC,OAAO;MACLG,UAAU,EAAGC,OAAO,IAAKH,OAAO,CAACE,UAAU,CAACC,OAAO,CAAC,CAACJ,UAAU;IACjE,CAAC;EACH;AACF;AAAC"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.987/dist/bundler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.987/dist/bundler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.989/dist/bundler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@0.0.989/dist/bundler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/bundler",
3
- "version": "0.0.987",
3
+ "version": "0.0.989",
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.987"
9
+ "version": "0.0.989"
10
10
  },
11
11
  "dependencies": {
12
12
  "cli-highlight": "2.1.9",
@@ -15,13 +15,13 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@babel/runtime": "7.20.0",
17
17
  "@teambit/harmony": "0.4.6",
18
- "@teambit/envs": "0.0.987",
19
- "@teambit/builder": "0.0.987",
20
- "@teambit/component": "0.0.987",
21
- "@teambit/cli": "0.0.662",
22
- "@teambit/dependency-resolver": "0.0.987",
23
- "@teambit/graphql": "0.0.987",
24
- "@teambit/pubsub": "0.0.987",
18
+ "@teambit/envs": "0.0.989",
19
+ "@teambit/builder": "0.0.989",
20
+ "@teambit/component": "0.0.989",
21
+ "@teambit/cli": "0.0.664",
22
+ "@teambit/dependency-resolver": "0.0.989",
23
+ "@teambit/graphql": "0.0.989",
24
+ "@teambit/pubsub": "0.0.989",
25
25
  "@teambit/toolbox.network.get-port": "0.0.121"
26
26
  },
27
27
  "devDependencies": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@apollo/client": "^3.6.0",
38
- "@teambit/legacy": "1.0.443",
38
+ "@teambit/legacy": "1.0.445",
39
39
  "react": "^16.8.0 || ^17.0.0",
40
40
  "react-dom": "^16.8.0 || ^17.0.0"
41
41
  },