From 376fa866ebcd945a3928ced1ccf2f276459155a8 Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Wed, 7 Oct 2020 17:51:49 -0500 Subject: [PATCH 1/3] calypso-build: add webpack config for output.jsonpFunction --- packages/calypso-build/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/calypso-build/webpack.config.js b/packages/calypso-build/webpack.config.js index 6572952bd7568..26fd12eac5753 100644 --- a/packages/calypso-build/webpack.config.js +++ b/packages/calypso-build/webpack.config.js @@ -54,6 +54,7 @@ function getWebpackConfig( 'output-path': outputPath = path.join( process.cwd(), 'dist' ), 'output-filename': outputFilename = '[name].js', 'output-library-target': outputLibraryTarget = 'window', + 'output-jsonp-function': outputJsonpFunction = 'webpackJsonp', } ) { const workerCount = 1; @@ -88,6 +89,7 @@ function getWebpackConfig( path: outputPath, filename: outputFilename, libraryTarget: outputLibraryTarget, + jsonpFunction: outputJsonpFunction, }, optimization: { minimize: ! isDevelopment, From b42eaaa94c94f7cf28832b4fccbf0f71875a002b Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Thu, 8 Oct 2020 09:48:36 -0500 Subject: [PATCH 2/3] Adds docblock comment for jsonp function config --- packages/calypso-build/webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/calypso-build/webpack.config.js b/packages/calypso-build/webpack.config.js index 26fd12eac5753..f2397d31c376e 100644 --- a/packages/calypso-build/webpack.config.js +++ b/packages/calypso-build/webpack.config.js @@ -44,6 +44,7 @@ const cachePath = path.resolve( '.cache' ); * @param {string} argv.'output-path' Output path * @param {string} argv.'output-filename' Output filename pattern * @param {string} argv.'output-library-target' Output library target + * @param {string} argv.'output-jsonp-function' Output jsonp function * @returns {object} webpack config */ function getWebpackConfig( From 14a1aab1fc3356e4ca86c17302fa167e7957b2be Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Wed, 21 Oct 2020 17:45:58 -0500 Subject: [PATCH 3/3] Adds json doc param for output-chunk-filename --- packages/calypso-build/webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/calypso-build/webpack.config.js b/packages/calypso-build/webpack.config.js index f2397d31c376e..d563544571c83 100644 --- a/packages/calypso-build/webpack.config.js +++ b/packages/calypso-build/webpack.config.js @@ -41,6 +41,7 @@ const cachePath = path.resolve( '.cache' ); * @param {object} env environment options * @param {object} argv options map * @param {object} argv.entry Entry point(s) + * @param {string} argv.'output-chunk-filename' Output chunk filename * @param {string} argv.'output-path' Output path * @param {string} argv.'output-filename' Output filename pattern * @param {string} argv.'output-library-target' Output library target