You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are compiling TypeScript based functions via the plugin, and our project uses TypeScript paths e.g. @ourcompany/logger to resolve libraries from a separate directory to be used within functions for common functionality.
In order to resolve these paths for bundling we are looking to use the tsconfig-paths plugin, but it appears that the plugins are never passed to esbuild / or executed.
We created a minimal plugin with a console.log in the setup method and it is never invoked. The get plugins() method within the project is definitely returning the plugins attribute from custom.esbuild.plugins and this resolves the file via require to return the plugins object as expected.
It appears however that esbuild never executes with the plugins. The console.log is never invoked.
To Reproduce
Steps to reproduce the behavior. If you have an example repository that would be even better:
The following minimal project was created to verify this behaviour.
Expected behavior
We expect to see the output from the console.log in the terminal output, but it's never called or invoked. I suspect that the plugins are never presented to esbuild when it is invoked.
Screenshots or Logs
No logs relevant to this issue.
Versions (please complete the following information):
OS: MacOS 13.1 (22C65)
Serverless Framework Version: 3.28.1
Plugin Version: 1.39.0
Additional context
None
The text was updated successfully, but these errors were encountered:
Describe the bug
We are compiling TypeScript based functions via the plugin, and our project uses TypeScript paths e.g.
@ourcompany/logger
to resolve libraries from a separate directory to be used within functions for common functionality.In order to resolve these paths for bundling we are looking to use the tsconfig-paths plugin, but it appears that the plugins are never passed to esbuild / or executed.
We created a minimal plugin with a
console.log
in thesetup
method and it is never invoked. Theget plugins()
method within the project is definitely returning the plugins attribute fromcustom.esbuild.plugins
and this resolves the file viarequire
to return theplugins
object as expected.It appears however that
esbuild
never executes with the plugins. Theconsole.log
is never invoked.To Reproduce
Steps to reproduce the behavior. If you have an example repository that would be even better:
The following minimal project was created to verify this behaviour.
serverless.ts
esbuild-plugins.js
api/src/endpoints/health/healthGet.ts
Expected behavior
We expect to see the output from the
console.log
in the terminal output, but it's never called or invoked. I suspect that the plugins are never presented to esbuild when it is invoked.Screenshots or Logs
No logs relevant to this issue.
Versions (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: