| 24 | | 24 | |
| 25 | /** | 25 | /** |
| 26 | * Wait until Webpack is done compiling. | 26 | * Wait until Webpack is done compiling. |
| 27 | * @param {boolean} [forceDist=false] Whether to force the use the /dist folder. | 27 | * @param {object} param Parameters. |
| | 28 | * @param {boolean} [param.forceDist] Whether to force the use the /dist folder. |
| 28 | * @returns {Promise<void>} | 29 | * @returns {Promise<void>} |
| 29 | */ | 30 | */ |
| 30 | devMiddleware.runWebpackCompiler = (forceDist = false) => { | 31 | devMiddleware.runWebpackCompiler = ({ forceDist = false } = {}) => { |
| 31 | const publicLibConfig = getPublicLibConfig(forceDist); | 32 | const publicLibConfig = getPublicLibConfig(forceDist); |
| 32 | const compiler = webpack(publicLibConfig); | 33 | const compiler = webpack(publicLibConfig); |
| 33 | | 34 | |