@teambit/bundler 1.0.106 → 1.0.108
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.
- package/browser-runtime.ts +5 -0
- package/bundle.ts +3 -0
- package/bundler-context.ts +242 -0
- package/bundler.aspect.ts +5 -0
- package/bundler.main.runtime.ts +159 -0
- package/bundler.ts +92 -0
- package/component-server.ts +94 -0
- package/dedup-envs.ts +84 -0
- package/dev-server-context.ts +56 -0
- package/dev-server.graphql.ts +46 -0
- package/dev-server.ts +52 -0
- package/dist/browser-runtime.d.ts +1 -1
- package/dist/bundler-context.d.ts +8 -8
- package/dist/bundler.composition.d.ts +2 -2
- package/dist/bundler.d.ts +6 -6
- package/dist/bundler.main.runtime.d.ts +5 -5
- package/dist/bundler.service.d.ts +1 -1
- package/dist/bundler.service.js +1 -1
- package/dist/bundler.service.js.map +1 -1
- package/dist/component-server.d.ts +1 -1
- package/dist/dedup-envs.d.ts +1 -1
- package/dist/dedup-envs.js +2 -3
- package/dist/dedup-envs.js.map +1 -1
- package/dist/dev-server.service.d.ts +5 -5
- package/dist/dev-server.service.js +5 -6
- package/dist/dev-server.service.js.map +1 -1
- package/dist/get-entry.d.ts +1 -1
- package/dist/{preview-1703505948637.js → preview-1703647408454.js} +2 -2
- package/get-entry.ts +31 -0
- package/index.ts +27 -0
- package/package.json +19 -26
- package/select-port.ts +8 -0
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
package/package.json
CHANGED
|
@@ -1,43 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/bundler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/bundler",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compilation",
|
|
8
8
|
"name": "bundler",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.108"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cli-highlight": "2.1.9",
|
|
13
|
-
"ink": "3.2.0",
|
|
14
13
|
"lodash": "4.17.21",
|
|
15
|
-
"
|
|
16
|
-
"@babel/runtime": "7.20.0",
|
|
14
|
+
"ink": "3.2.0",
|
|
17
15
|
"@teambit/harmony": "0.4.6",
|
|
18
|
-
"@teambit/envs": "1.0.
|
|
19
|
-
"@teambit/builder": "1.0.
|
|
20
|
-
"@teambit/component": "1.0.
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/dependency-resolver": "1.0.
|
|
23
|
-
"@teambit/graphql": "1.0.
|
|
24
|
-
"@teambit/pubsub": "1.0.
|
|
16
|
+
"@teambit/envs": "1.0.108",
|
|
17
|
+
"@teambit/builder": "1.0.108",
|
|
18
|
+
"@teambit/component": "1.0.108",
|
|
19
|
+
"@teambit/cli": "0.0.840",
|
|
20
|
+
"@teambit/dependency-resolver": "1.0.108",
|
|
21
|
+
"@teambit/graphql": "1.0.108",
|
|
22
|
+
"@teambit/pubsub": "1.0.108",
|
|
25
23
|
"@teambit/toolbox.network.get-port": "1.0.4"
|
|
26
24
|
},
|
|
27
25
|
"devDependencies": {
|
|
28
|
-
"@types/react": "^17.0.8",
|
|
29
26
|
"@types/lodash": "4.14.165",
|
|
30
27
|
"@types/mocha": "9.1.0",
|
|
31
|
-
"@types/
|
|
32
|
-
"@types/
|
|
33
|
-
"@
|
|
34
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
|
28
|
+
"@types/jest": "^29.2.2",
|
|
29
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
|
30
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.13"
|
|
35
31
|
},
|
|
36
32
|
"peerDependencies": {
|
|
37
33
|
"@apollo/client": "^3.6.0",
|
|
38
|
-
"
|
|
39
|
-
"react": "^
|
|
40
|
-
"
|
|
34
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
35
|
+
"@types/react": "^18.2.12",
|
|
36
|
+
"@teambit/legacy": "1.0.624"
|
|
41
37
|
},
|
|
42
38
|
"license": "Apache-2.0",
|
|
43
39
|
"optionalDependencies": {},
|
|
@@ -51,7 +47,7 @@
|
|
|
51
47
|
},
|
|
52
48
|
"private": false,
|
|
53
49
|
"engines": {
|
|
54
|
-
"node": ">=
|
|
50
|
+
"node": ">=16.0.0"
|
|
55
51
|
},
|
|
56
52
|
"repository": {
|
|
57
53
|
"type": "git",
|
|
@@ -60,12 +56,9 @@
|
|
|
60
56
|
"keywords": [
|
|
61
57
|
"bit",
|
|
62
58
|
"bit-aspect",
|
|
59
|
+
"bit-core-aspect",
|
|
63
60
|
"components",
|
|
64
61
|
"collaboration",
|
|
65
|
-
"web"
|
|
66
|
-
"react",
|
|
67
|
-
"react-components",
|
|
68
|
-
"angular",
|
|
69
|
-
"angular-components"
|
|
62
|
+
"web"
|
|
70
63
|
]
|
|
71
64
|
}
|
package/select-port.ts
ADDED
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"lib": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"DOM.Iterable",
|
|
8
|
-
"ScriptHost"
|
|
4
|
+
"esnext",
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.Iterable"
|
|
9
7
|
],
|
|
10
|
-
"target": "
|
|
11
|
-
"module": "
|
|
12
|
-
"jsx": "react",
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"composite": true,
|
|
8
|
+
"target": "es2020",
|
|
9
|
+
"module": "es2020",
|
|
10
|
+
"jsx": "react-jsx",
|
|
15
11
|
"declaration": true,
|
|
16
12
|
"sourceMap": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
13
|
"experimentalDecorators": true,
|
|
19
|
-
"
|
|
14
|
+
"skipLibCheck": true,
|
|
20
15
|
"moduleResolution": "node",
|
|
21
16
|
"esModuleInterop": true,
|
|
22
|
-
"rootDir": ".",
|
|
23
17
|
"resolveJsonModule": true,
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"strictPropertyInitialization": false,
|
|
28
|
-
"strict": true,
|
|
29
|
-
"noImplicitAny": false,
|
|
30
|
-
"preserveConstEnums": true
|
|
18
|
+
"allowJs": true,
|
|
19
|
+
"outDir": "dist",
|
|
20
|
+
"emitDeclarationOnly": true
|
|
31
21
|
},
|
|
32
22
|
"exclude": [
|
|
23
|
+
"artifacts",
|
|
24
|
+
"public",
|
|
33
25
|
"dist",
|
|
26
|
+
"node_modules",
|
|
27
|
+
"package.json",
|
|
34
28
|
"esm.mjs",
|
|
35
|
-
"
|
|
29
|
+
"**/*.cjs",
|
|
30
|
+
"./dist"
|
|
36
31
|
],
|
|
37
32
|
"include": [
|
|
38
33
|
"**/*",
|
package/types/asset.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
|
5
5
|
declare module '*.svg' {
|
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
7
|
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
9
11
|
const src: string;
|
|
10
12
|
export default src;
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
// @TODO Gilad
|
|
14
14
|
declare module '*.jpg' {
|
|
15
15
|
const value: any;
|
|
16
16
|
export = value;
|
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
|
27
27
|
const value: any;
|
|
28
28
|
export = value;
|
|
29
29
|
}
|
|
30
|
+
declare module '*.otf' {
|
|
31
|
+
const value: any;
|
|
32
|
+
export = value;
|
|
33
|
+
}
|
|
34
|
+
declare module '*.woff' {
|
|
35
|
+
const value: any;
|
|
36
|
+
export = value;
|
|
37
|
+
}
|
|
38
|
+
declare module '*.woff2' {
|
|
39
|
+
const value: any;
|
|
40
|
+
export = value;
|
|
41
|
+
}
|