Serverless-webpack: Add ability to exclude files from handler lookup

Created on 15 Aug 2018  路  4Comments  路  Source: serverless-heaven/serverless-webpack

This is a Feature Proposal

Description

Please add the ability to exclude certain files from the handler lookup. This is to get around the extraneous (and possibly error-prone) WARNING: More than one matching handlers found for 'handler'. Using 'handler.js' message when there are unit test files in the same directory.

Possible config example:

custom:
  webpack:
    excludeFiles: src/**/*.test.[t|j]s

Similar or dependent issue(s):

  • #405
feature

Most helpful comment

since it looks like this is just sitting at the moment... I am working on a fix for it. Hope to have a pull request put together in the next few days

All 4 comments

Glad to see this issue. Anyone using Typescript is going to immediately run into this. Out of interest, is there currently a work around?

For now I'm changed my tsconfig.json to not create map files and declaration files.

since it looks like this is just sitting at the moment... I am working on a fix for it. Hope to have a pull request put together in the next few days

Released with 5.3.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slushnys picture slushnys  路  5Comments

jmparsons picture jmparsons  路  5Comments

tommedema picture tommedema  路  4Comments

hassankhan picture hassankhan  路  3Comments

wooooooak picture wooooooak  路  5Comments