@forge/bundler 4.6.1-next.9 → 4.6.2-next.0
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 +65 -0
- package/out/config/node.d.ts.map +1 -1
- package/out/config/node.js +6 -0
- package/out/text.d.ts +0 -1
- package/out/text.d.ts.map +1 -1
- package/out/text.js +0 -1
- package/out/types.d.ts +5 -3
- package/out/types.d.ts.map +1 -1
- package/out/webpack.d.ts +2 -2
- package/out/webpack.d.ts.map +1 -1
- package/out/webpack.js +10 -10
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.6.2-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d1c1588]
|
|
8
|
+
- @forge/cli-shared@3.9.0-next.0
|
|
9
|
+
- @forge/lint@3.2.18-next.0
|
|
10
|
+
|
|
11
|
+
## 4.6.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 8db8d54: Don't try bundling optional packages with native extensions
|
|
16
|
+
- d9ebc65: Bumping dependencies via Renovate:
|
|
17
|
+
|
|
18
|
+
- @types/readable-stream
|
|
19
|
+
|
|
20
|
+
- 47a05cd: Fix tunnel not logging errors when using node runtime
|
|
21
|
+
- Updated dependencies [0d36e72]
|
|
22
|
+
- Updated dependencies [7100287]
|
|
23
|
+
- Updated dependencies [db2615bd]
|
|
24
|
+
- Updated dependencies [149ebb5]
|
|
25
|
+
- Updated dependencies [dc0e198]
|
|
26
|
+
- Updated dependencies [4acdb01]
|
|
27
|
+
- Updated dependencies [8577200]
|
|
28
|
+
- Updated dependencies [0195732]
|
|
29
|
+
- Updated dependencies [081aaa9]
|
|
30
|
+
- Updated dependencies [9614f64]
|
|
31
|
+
- Updated dependencies [6f454d7]
|
|
32
|
+
- @forge/cli-shared@3.8.0
|
|
33
|
+
- @forge/util@1.2.2
|
|
34
|
+
- @forge/api@2.13.0
|
|
35
|
+
- @forge/runtime@4.3.1
|
|
36
|
+
- @forge/lint@3.2.17
|
|
37
|
+
|
|
38
|
+
## 4.6.1-next.13
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [9614f64]
|
|
43
|
+
- @forge/cli-shared@3.8.0-next.7
|
|
44
|
+
- @forge/lint@3.2.17-next.7
|
|
45
|
+
|
|
46
|
+
## 4.6.1-next.12
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [149ebb5]
|
|
51
|
+
- @forge/cli-shared@3.8.0-next.6
|
|
52
|
+
- @forge/lint@3.2.17-next.6
|
|
53
|
+
|
|
54
|
+
## 4.6.1-next.11
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- 8db8d54: Don't try bundling optional packages with native extensions
|
|
59
|
+
|
|
60
|
+
## 4.6.1-next.10
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [0d36e724]
|
|
65
|
+
- @forge/cli-shared@3.8.0-next.5
|
|
66
|
+
- @forge/lint@3.2.17-next.5
|
|
67
|
+
|
|
3
68
|
## 4.6.1-next.9
|
|
4
69
|
|
|
5
70
|
### Patch Changes
|
package/out/config/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAIpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAIpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AAYvD,eAAO,MAAM,yBAAyB,gBACvB,mBAAmB,EAAE,UAC1B,aAAa,KACpB,mBA8CF,CAAC"}
|
package/out/config/node.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.getNodeRuntimeBuildConfig = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
|
|
|
4
4
|
const webpack_1 = require("webpack");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
exports.NODE_WEBPACK_CONFIG_NAME = 'node-runtime';
|
|
7
|
+
const IGNORE_MODULES = ['bufferutil', 'utf-8-validate', 'dtrace-provider'];
|
|
7
8
|
const getNodeRuntimeBuildConfig = (entrypoints, config) => {
|
|
8
9
|
const webpackConfig = (0, common_1.getCommonWebpackConfig)(entrypoints, config);
|
|
9
10
|
const wrapperPath = (0, common_1.resolveStubPath)('wrapper');
|
|
@@ -14,6 +15,11 @@ const getNodeRuntimeBuildConfig = (entrypoints, config) => {
|
|
|
14
15
|
}
|
|
15
16
|
webpackConfig.entry = newEntries;
|
|
16
17
|
webpackConfig.target = 'node18';
|
|
18
|
+
const ignored = {};
|
|
19
|
+
for (const module of IGNORE_MODULES) {
|
|
20
|
+
ignored[module] = module;
|
|
21
|
+
}
|
|
22
|
+
webpackConfig.externals = ignored;
|
|
17
23
|
const defineExports = ({ filename }) => {
|
|
18
24
|
const entryName = filename.replace(/\.js$/, '');
|
|
19
25
|
const entrypoint = entrypoints.find((e) => e.name === entryName);
|
package/out/text.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export declare const Text: {
|
|
|
2
2
|
genericBundlingError: (errors: string[]) => string;
|
|
3
3
|
typescriptError: (errors: string[]) => string;
|
|
4
4
|
noExecutableFile: string;
|
|
5
|
-
warnings: (warnings: string[]) => string;
|
|
6
5
|
unsupported: (requestedModule: string) => string;
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=text.d.ts.map
|
package/out/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;mCACgB,MAAM,EAAE;8BACb,MAAM,EAAE;;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;mCACgB,MAAM,EAAE;8BACb,MAAM,EAAE;;mCAKH,MAAM;CAEtC,CAAC"}
|
package/out/text.js
CHANGED
|
@@ -5,6 +5,5 @@ exports.Text = {
|
|
|
5
5
|
genericBundlingError: (errors) => `Bundling failed: ${errors.join(', ')}`,
|
|
6
6
|
typescriptError: (errors) => `TypeScript errors in the app caused the bundling to fail. Fix the errors listed below before rerunning the command. ${errors.join('')}`,
|
|
7
7
|
noExecutableFile: 'Could not find the main executable file',
|
|
8
|
-
warnings: (warnings) => `Bundling warnings: ${warnings.join(', ')}`,
|
|
9
8
|
unsupported: (requestedModule) => `⚠️ the '${requestedModule}' module is not supported by Forge, please refer to the documentation at https://go.atlassian.com/forge-runtime-js-environment`
|
|
10
9
|
};
|
package/out/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Logger } from '@forge/cli-shared';
|
|
1
2
|
import { Compiler } from 'webpack';
|
|
2
3
|
import { EntryPoint } from './webpack';
|
|
3
4
|
export declare type BundledFiles = {
|
|
@@ -13,8 +14,9 @@ export interface BundlerOutput {
|
|
|
13
14
|
[key: string]: any;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
export declare type
|
|
17
|
-
export declare type
|
|
17
|
+
export declare type BundleLogger = Pick<Logger, 'info' | 'warn'>;
|
|
18
|
+
export declare type Bundler<EP = EntryPoint> = (logger: BundleLogger, appDirectory: string, endpointPath: EP[]) => Promise<BundlerOutput>;
|
|
19
|
+
export declare type InDiskBundler = (logger: BundleLogger, entrypoints: EntryPoint[]) => Promise<{
|
|
18
20
|
outputDir: string;
|
|
19
21
|
}>;
|
|
20
22
|
export declare type WatcherCallback = (err: Error | null, output?: BundlerOutput) => void;
|
|
@@ -22,5 +24,5 @@ export interface WatcherMonitor {
|
|
|
22
24
|
stop(): void;
|
|
23
25
|
}
|
|
24
26
|
export declare type WatchRun = (compiler: Compiler, ...args: any[]) => void;
|
|
25
|
-
export declare type Watcher = (endpointPath: EntryPoint[], isDebugMode: boolean, callback: WatcherCallback, watchRun?: WatchRun) => WatcherMonitor;
|
|
27
|
+
export declare type Watcher = (logger: Logger, endpointPath: EntryPoint[], isDebugMode: boolean, callback: WatcherCallback, watchRun?: WatchRun) => WatcherMonitor;
|
|
26
28
|
//# sourceMappingURL=types.d.ts.map
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,oBAAY,YAAY,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAC1D,oBAAY,gBAAgB,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE9D,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,oBAAY,OAAO,CAAC,EAAE,GAAG,UAAU,IAAI,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3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,QAAQ,EAAE,eAAe,EACzB,QAAQ,CAAC,EAAE,QAAQ,KAChB,cAAc,CAAC"}
|
package/out/webpack.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IFs } from 'memfs';
|
|
2
2
|
import webpack, { Compiler, Configuration as WebpackConfig } from 'webpack';
|
|
3
|
-
import { Bundler, Watcher, InDiskBundler, BundlerOutput } from './types';
|
|
3
|
+
import { Bundler, Watcher, InDiskBundler, BundlerOutput, BundleLogger } from './types';
|
|
4
4
|
import { FileSystemReader, FileSystemWriter } from '@forge/cli-shared';
|
|
5
5
|
import { LintLogger } from '@forge/lint';
|
|
6
6
|
import { CommonWebpackConfig, ConfigBuilder, EntryPoint, FunctionsEntryPoint } from './config/common';
|
|
7
7
|
export { EntryPoint };
|
|
8
|
-
export declare function handleWebpackCompilationResult(err: Error | null | undefined, stats: webpack.Stats | undefined): asserts stats is webpack.Stats;
|
|
8
|
+
export declare function handleWebpackCompilationResult(logger: BundleLogger, err: Error | null | undefined, stats: webpack.Stats | undefined): asserts stats is webpack.Stats;
|
|
9
9
|
export declare function getInMemoryBundle(config: CommonWebpackConfig, fileSystem?: IFs): BundlerOutput;
|
|
10
10
|
interface CompilerOptions {
|
|
11
11
|
writeToDisk?: boolean;
|
package/out/webpack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAU,MAAM,OAAO,CAAC;AACxD,OAAO,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5E,OAAO,EACL,OAAO,EAGP,OAAO,EAEP,aAAa,EACb,aAAa,EACb,YAAY,EACb,MAAM,SAAS,CAAC;AACjB,OAAO,E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le = exports.nodeBundle = exports.sandboxBundle = exports.createBundler = exports.watch = exports.runLinter = exports.getCompiler = exports.getInMemoryBundle = exports.handleWebpackCompilationResult = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
5
|
const memfs_1 = require("memfs");
|
|
7
6
|
const webpack_1 = tslib_1.__importDefault(require("webpack"));
|
|
8
7
|
const text_1 = require("./text");
|
|
@@ -15,7 +14,7 @@ const compilerOutputFileSystem = (0, memfs_1.createFsFromVolume)(new memfs_1.Vol
|
|
|
15
14
|
const readMemoryFileSync = (outputFileSystem, filePath) => {
|
|
16
15
|
return outputFileSystem.readFileSync(filePath, { encoding: 'utf8' }).toString();
|
|
17
16
|
};
|
|
18
|
-
function handleWebpackCompilationResult(err, stats) {
|
|
17
|
+
function handleWebpackCompilationResult(logger, err, stats) {
|
|
19
18
|
if (err) {
|
|
20
19
|
throw err;
|
|
21
20
|
}
|
|
@@ -36,8 +35,9 @@ function handleWebpackCompilationResult(err, stats) {
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
if (stats.hasWarnings() && info.warnings) {
|
|
39
|
-
const
|
|
40
|
-
|
|
38
|
+
for (const warning of info.warnings) {
|
|
39
|
+
logger.warn(warning.message);
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.handleWebpackCompilationResult = handleWebpackCompilationResult;
|
|
@@ -114,7 +114,7 @@ const runLinter = async (logger = { info: console.log }, fileSystemReader = new
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
exports.runLinter = runLinter;
|
|
117
|
-
const watch = (entryPoints, debugMode, callback, watchRun) => {
|
|
117
|
+
const watch = (logger, entryPoints, debugMode, callback, watchRun) => {
|
|
118
118
|
const config = (0, sandbox_1.getSandboxedRuntimeBuildConfig)(entryPoints, {
|
|
119
119
|
isWatchMode: true,
|
|
120
120
|
isDebugMode: debugMode,
|
|
@@ -128,7 +128,7 @@ const watch = (entryPoints, debugMode, callback, watchRun) => {
|
|
|
128
128
|
}
|
|
129
129
|
const watcher = compiler.watch({ poll: 1000 }, (compilerError, stats) => {
|
|
130
130
|
try {
|
|
131
|
-
handleWebpackCompilationResult(compilerError, stats);
|
|
131
|
+
handleWebpackCompilationResult(logger, compilerError, stats);
|
|
132
132
|
callback(null, getInMemoryBundle(config));
|
|
133
133
|
}
|
|
134
134
|
catch (fileReadError) {
|
|
@@ -139,13 +139,13 @@ const watch = (entryPoints, debugMode, callback, watchRun) => {
|
|
|
139
139
|
};
|
|
140
140
|
exports.watch = watch;
|
|
141
141
|
function createBundler(getBuildConfig) {
|
|
142
|
-
return (appDirectory, endpoints) => {
|
|
142
|
+
return (logger, appDirectory, endpoints) => {
|
|
143
143
|
const config = getBuildConfig(endpoints, { isWatchMode: false, appDirectory });
|
|
144
144
|
const compiler = (0, exports.getCompiler)(config);
|
|
145
145
|
return new Promise((resolve, reject) => {
|
|
146
146
|
compiler.run((compilerError, stats) => {
|
|
147
147
|
try {
|
|
148
|
-
handleWebpackCompilationResult(compilerError, stats);
|
|
148
|
+
handleWebpackCompilationResult(logger, compilerError, stats);
|
|
149
149
|
const result = getInMemoryBundle(config);
|
|
150
150
|
compiler.close((closeError) => {
|
|
151
151
|
if (closeError) {
|
|
@@ -167,13 +167,13 @@ function createBundler(getBuildConfig) {
|
|
|
167
167
|
exports.createBundler = createBundler;
|
|
168
168
|
exports.sandboxBundle = createBundler(sandbox_1.getSandboxedRuntimeBuildConfig);
|
|
169
169
|
exports.nodeBundle = createBundler(node_1.getNodeRuntimeBuildConfig);
|
|
170
|
-
const nativeUiBundle = (entrypoints) => {
|
|
170
|
+
const nativeUiBundle = (logger, entrypoints) => {
|
|
171
171
|
const config = (0, nativeui_1.getNativeUiBuildConfig)(entrypoints);
|
|
172
172
|
const compiler = (0, exports.getCompiler)(config, { writeToDisk: true });
|
|
173
173
|
return new Promise((resolve, reject) => {
|
|
174
174
|
compiler.run((compilerError, stats) => {
|
|
175
175
|
try {
|
|
176
|
-
handleWebpackCompilationResult(compilerError, stats);
|
|
176
|
+
handleWebpackCompilationResult(logger, compilerError, stats);
|
|
177
177
|
resolve({
|
|
178
178
|
outputDir: config.output.path
|
|
179
179
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2-next.0",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
19
19
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
20
20
|
"@babel/preset-typescript": "^7.16.7",
|
|
21
|
-
"@forge/api": "2.13.0
|
|
21
|
+
"@forge/api": "2.13.0",
|
|
22
22
|
"@forge/babel-plugin-transform-ui": "1.1.1",
|
|
23
|
-
"@forge/cli-shared": "3.
|
|
24
|
-
"@forge/lint": "3.2.
|
|
25
|
-
"@forge/runtime": "4.3.1
|
|
26
|
-
"@forge/util": "1.2.2
|
|
23
|
+
"@forge/cli-shared": "3.9.0-next.0",
|
|
24
|
+
"@forge/lint": "3.2.18-next.0",
|
|
25
|
+
"@forge/runtime": "4.3.1",
|
|
26
|
+
"@forge/util": "1.2.2",
|
|
27
27
|
"assert": "^1.1.1",
|
|
28
28
|
"babel-loader": "^8.2.3",
|
|
29
29
|
"browserify-zlib": "^0.2.0",
|