serverless-heaven / serverless-webpack

Serverless plugin to bundle your lambdas with Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asynchronous configuration object support for Webpack

nidin opened this issue · comments

This is a Feature Proposal

Description

Webpack 2+ support async configuration object by exporting a promise as configuration object.
This is a feature request to support async configuration object. This feature helps to define env variables and constants inside code after an async operation inside webpack.config.js. for example defining AccountId of current user inside lambda@edge which does not support defining normal process environment variables.

Similar or dependent issue(s):

Additional Data

  • Serverless-Webpack Version: 5.1.5
  • Webpack version: 4.11.1
  • Serverless Framework Version: 1.27.2
  • Operating System: MacOS High Sierra (10.13.5)
  • Stack Trace: