Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set target to 'node' if not specified by the configuration. #282

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

HyperBrain
Copy link
Member

@HyperBrain HyperBrain commented Nov 18, 2017

What did you implement:

Closes #276

How did you implement it:

Trivial change: Set target to 'node' in case it is not set in the configuration.
Added unit tests.

How can we verify it:

Supply a webpack configuration without the target property. It should be set to 'node' automatically and a Serverless service should deploy and run correctly (especially the environment variables which break if the target is not set in the webpack compiler).

Todos:

  • Write tests
  • [ ] Write documentation not relevant
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@HyperBrain HyperBrain merged commit 34dba75 into master Nov 20, 2017
@HyperBrain HyperBrain deleted the set-default-target branch November 20, 2017 11:09
jamesmbourne pushed a commit to jamesmbourne/serverless-webpack that referenced this pull request Oct 15, 2019
…efault-target

Set target to 'node' if not specified by the configuration.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set webpack target property to "node" in case it is missing in the config
1 participant