Coder Social home page Coder Social logo

Comments (6)

kentcdodds avatar kentcdodds commented on April 25, 2024 1

Good catch! Pushed that removal :)

from grunge-stack.

gitblit avatar gitblit commented on April 25, 2024 1

I played around with this a little and got somewhat further, but it's not much further than I got in Dec/Jan when I was first exploring this.

  • I started with the code before the commit associated with this issue (so pre-ts-node changes)
  • I cheated and renamed server.js to server.ts but otherwise left it as-is (I'm not overly experienced in the JS/TS space, this was a shortcut just to produce something)
  • I added the arc plugin for typescript as documented here

This results in:

  • 🎉 a 2MB deployed lambda with only what is needed (the goal)
  • 🐛 a break in local/sandbox workflow since server.ts is not automatically recompiled when the Remix app is recompiled. (not the goal). Perhaps this is what ts-node brings to the table?

I think that is the fundamental issue - how to blend the two TypeScript build phases - the one for Remix & the one for Arc sandbox.

from grunge-stack.

gitblit avatar gitblit commented on April 25, 2024

Amazing! I can't wait to see the improvement on the lambda deployment.

@kentcdodds did you mean to commit server.js ? Seems like maybe that should be deleted and gitignored since you wrote server.ts?

from grunge-stack.

gitblit avatar gitblit commented on April 25, 2024

@kentcdodds I have good news & bad news.

  • 🎉 server.ts looks great!
  • 😢 the deployed lambda size went the wrong direction. Now it's bundling 108MB instead of 29MB of dependencies.

Screenshot from 2022-03-24 20-47-06

from grunge-stack.

kentcdodds avatar kentcdodds commented on April 25, 2024

@tbeseda @jacob-ebey do you know what we might be doing wrong here?

from grunge-stack.

recipher avatar recipher commented on April 25, 2024

Is there any progress here?

from grunge-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.