Git Product home page Git Product logo

Comments (5)

cryptiklemur avatar cryptiklemur commented on September 24, 2024 1

would be nice to update that blog post to use babel-loader (the defacto standard for typescript + webpack now), instead of awesome-typescript-loader

from templates.

jrf0110 avatar jrf0110 commented on September 24, 2024

For basic examples, you can follow the instructions here https://blog.cloudflare.com/using-webpack-to-bundle-workers/

Cloudflare Workers are a superset of Service Workers, so you can use TypeScript's built-in definitions for webworkers by specifying it in your tsconfig.json:

"lib": ["es2015", "webworker"],

from templates.

13rac1 avatar 13rac1 commented on September 24, 2024

I've published complete types and mock: https://github.com/udacity/cloudflare-typescript-workers

from templates.

leoiii12 avatar leoiii12 commented on September 24, 2024

This is in parceljs
https://github.com/leoiii12/cloudflare-workers-forum/tree/master/api/

from templates.

lukeed avatar lukeed commented on September 24, 2024

I know this is old, but this is now available in the /worker-typescript subdirectory.

You can create a project with it by visiting https://workers.new/typescript or locally via:

$ npm init cloudflare my-project worker-typescript
# or
$ yarn create cloudflare my-project worker-typescript
# or
$ pnpm create cloudflare my-project worker-typescript

from templates.

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.