You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/commands/build.commands.js
+12-2
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ import { vulcan } from '#env';
14
14
* @param {string} [options.preset] - Preset to be used (e.g., 'javascript', 'typescript').
15
15
* @param {string} [options.mode] - Mode in which to run the build (e.g., 'deliver', 'compute').
16
16
* @param {boolean} [options.useNodePolyfills] - Whether to use Node.js polyfills.
17
+
* @param {boolean} [options.useOwnWorker] - This flag indicates that the constructed code inserts its own worker expression, such as addEventListener("fetch") or similar, without the need to inject a provider.
17
18
* @returns {Promise<void>} - A promise that resolves when the build is complete.
18
19
* @example
19
20
*
@@ -24,12 +25,19 @@ import { vulcan } from '#env';
Copy file name to clipboardexpand all lines: lib/main.js
+4
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,10 @@ function startVulcanProgram() {
82
82
)
83
83
.option('--mode <type>','Mode of build target (e.g., deliver, compute)')
84
84
.option('--useNodePolyfills','Use node polyfills in build.')
85
+
.option(
86
+
'--useOwnWorker',
87
+
'This flag indicates that the constructed code inserts its own worker expression, such as addEventListener("fetch") or similar, without the need to inject a provider.',
88
+
)
85
89
.option(
86
90
'--useOwnWorker',
87
91
'Enabling this setting disables the automatic insertion of \'addEventListener("fetch")\' or equivalent for each provider.',
0 commit comments