threadheap / serverless-plugin-parcel Goto Github PK
View Code? Open in Web Editor NEWA Serverless framework plugin to bundle assets with Parcel (ES6/7 or Typescript)
A Serverless framework plugin to bundle assets with Parcel (ES6/7 or Typescript)
Hey,
I have 2 functions that I'm trying to package separately.
The sls package
process generates 2 zips in /.serverless, and they both contain 2 js files, 1 for each function.
Is there a way to do a separate build so every zip will contain only one function?
Hi ๐
Thanks for the plugin, but I'm having an issue when multiple functions are defined into serverless.yaml
for instance:
functions:
foo:
handler: src/index.foo
events:
- http: POST foo
bar:
handler: src/index.bar
events:
- http: POST bar
๐จ Cannot add a worker call if workerfarm is ending.
Do you have any workaround? Cheers.
I'm trying to keep my local directory structure clean, and I'd like this plugin to use my custom.parcel.outDir
setting, rather than the hardcoded buildFolder
. It doesn't seem like a particularly big change, and I'd be happy to submit a PR if you're ok with it. Thanks!
We have issues with dynamic imports with lazy loading on one of our dependencies, parcel doesn't handle that package well. is it possible to include that as an external module in the zip?
In fact, I would prefer keeping all the node_modules as external, while there is an option to not build node_modules, I didn't find any way to add the non-dev node_modules in the generated zip file.
Is there a way to achieve this?
Hi,
I have some problems when trying to bundle code that uses @sentry/serverless due to dependency perf_hooks
Parcel errors out: Cannot resolve dependency 'perf_hooks'.
It seems that this issue is solved in parcel2.
Is it possible to use this plugin with this new version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.