Closed s-stefanov closed 4 years ago
We have not added support for TypeScript just yet. It's on the roadmap. #366
Yes, I understand that. But when I run sls deploy
or sls package
the correct zip file is created (with JS files) and uploaded to Azure. Functions are executed correctly also.
My problem is to run Webpack build on local sls offline
before func host start
command. Can this be made?
@tbarlow12 The same issue is with modern JavaScript syntax and babel/webpack build to support it. How can I run the webpack on sls offline
?
@tbarlow12 We have written our functions in ES6+ including ES-modules (import
).
Running sls deploy
does in fact transpile code perfectly, however sls offline
gives us Javascript errors about not supported ES6 code (such as import / export).
How can we run sls offline
and make sure Webpack / Babel is transpiling code as it does with sls deploy
?
This is a Bug Report
Description
sls offline
invoke. When I invokesls package
, the functions are transpiled and packagedfunc host start
function.json
is generated, but it points to not existed .js fileSimilar or dependent issues:
12345
Additional Data