@forge/bundler 6.1.3-next.7 → 6.1.3-next.8
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/CHANGELOG.md +9 -0
- package/out/nativeui.d.ts.map +1 -1
- package/out/nativeui.js +17 -14
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 6.1.3-next.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 268551f: Simplify tunnel classes and analytics
|
|
8
|
+
- Updated dependencies [268551f]
|
|
9
|
+
- @forge/cli-shared@8.4.0-next.7
|
|
10
|
+
- @forge/lint@5.10.2-next.8
|
|
11
|
+
|
|
3
12
|
## 6.1.3-next.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/out/nativeui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../src/nativeui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"nativeui.d.ts","sourceRoot":"","sources":["../src/nativeui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAA+B,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,eAAe,EAAE,CAAC;CAC3C;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC3C,SAAS,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIvE,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,UAAU,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAmCrH"}
|
package/out/nativeui.js
CHANGED
|
@@ -9,27 +9,30 @@ class NativeUIBundler extends webpack_1.WebpackBundler {
|
|
|
9
9
|
return (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig);
|
|
10
10
|
}
|
|
11
11
|
async bundleResources(resources, i18nConfig) {
|
|
12
|
-
const entryPoints = resources.map(({ key, path }) => ({
|
|
13
|
-
name: key,
|
|
14
|
-
path
|
|
15
|
-
}));
|
|
16
12
|
const nativeUiBundlesDetails = [];
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
await Promise.all(resources.map(async (resource) => {
|
|
14
|
+
const entryPoint = {
|
|
15
|
+
name: resource.key,
|
|
16
|
+
path: resource.path
|
|
17
|
+
};
|
|
18
|
+
let bundlerOutput;
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
bundlerOutput = await this.bundle({
|
|
21
|
+
appDirectory: '',
|
|
22
|
+
entryPoints: [entryPoint],
|
|
23
|
+
i18nConfig
|
|
24
|
+
});
|
|
21
25
|
}
|
|
22
26
|
catch (e) {
|
|
23
27
|
throw new types_1.BundlerError(e.message);
|
|
24
28
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
29
|
+
const { outputDir } = bundlerOutput;
|
|
30
|
+
this.logger.debug(`NativeUI bundle created: ${outputDir}`);
|
|
31
|
+
nativeUiBundlesDetails.push({
|
|
32
|
+
...resource,
|
|
33
|
+
path: outputDir
|
|
31
34
|
});
|
|
32
|
-
}
|
|
35
|
+
}));
|
|
33
36
|
return {
|
|
34
37
|
nativeUiBundlesDetails
|
|
35
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "6.1.3-next.
|
|
3
|
+
"version": "6.1.3-next.8",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@babel/plugin-transform-numeric-separator": "^7.23.4",
|
|
19
19
|
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
20
20
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
21
|
-
"@forge/cli-shared": "8.4.0-next.
|
|
21
|
+
"@forge/cli-shared": "8.4.0-next.7",
|
|
22
22
|
"@forge/i18n": "0.0.7",
|
|
23
|
-
"@forge/lint": "5.10.2-next.
|
|
23
|
+
"@forge/lint": "5.10.2-next.8",
|
|
24
24
|
"@forge/manifest": "10.2.2-next.2",
|
|
25
25
|
"babel-loader": "^8.3.0",
|
|
26
26
|
"cheerio": "^1.1.0",
|