AnomalyInnovations / serverless-bundle

Optimized packages for ES6 and TypeScript Node.js Lambda functions without any configuration.
https://serverless-stack.com/chapters/package-lambdas-with-serverless-bundle.html
MIT License
535 stars 157 forks source link

Class private methods not supported #332

Open Pixcell opened 1 year ago

Pixcell commented 1 year ago

Hello

I am currently trying to deploy to AWS lambda using serverless and serverless-bundle. The runtime is set to nodejs16.x

I am getting lots of webpack errors

Bundling with Webpack...
ERROR in ../../../src/orchestrator/pipelineRunner.js
Module build failed (from ../../babel-loader/lib/index.js):
SyntaxError: /home/circleci/project/src/orchestrator/pipelineRunner.js: Class private methods are not enabled. Please add `@babel/plugin-proposal-private-method` to your configuration.
  19 |   }
  20 |
> 21 |   async #finalisePipeline() {
     |   ^
  22 |     const { usage, pipelineName, runUuid, chiefOrchestratorContext } = this.pipelineRun;
  23 |     await recordUsage(usage, pipelineName);
  24 |     await saveManifest(this.pipelineRun);

Since I can't directly fiddle with the webpack config, I am opening an issue here.

Thank you!