Code Monkey home page Code Monkey logo

stdlib's Introduction

npm version

Introduction

tspack is a bundler for typescript modules. Packs many modules into a few bundled assets. Allows to split your codebase into multiple bundles, which can be loaded on demand.

Installation

project: npm install tspack

global: npm install tspack -g

Example

tsconfig.json :

{
  "compilerOptions": {
    "outDir": "bin-debug",
    "target": "ES5",
    "declaration": true,
    "accessorOptimization": true,
    "emitReflection": true,
    "reorderFiles": true,
    "defines": {
      "DEBUG": false,
      "LANGUAGE": "en_US"
    }
  },
  "modules": [
    {
      "name": "core",
      "include": [
        "src/**/*"
      ],
      "exclude": [
        "**/web/*",
        "node_modules"
      ],
      "dependencies": []
    },
    {
      "name": "web",
      "declaration": false, // Override the default compiler options defined above.
      "include": [
        "src/**/web/*"
      ],
      "exclude": [
        "node_modules"
      ],
      "dependencies": [
        "core"
      ]
    }
  ]
}

stdlib's People

Contributors

0x706b avatar github-actions[bot] avatar imax153 avatar mikearnaldi avatar tstelzer avatar walexander avatar wesselvdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stdlib's Issues

Consideration for support of ESM/CJS

Currently all modules are exported both as CJS and ESM, this while being a valid solution presents a fundamental issue;

packages can be either cjs or esm but can never be both, if for example one were to import a cjs dependency from an esm module we would end up with 2 copies of effect that share no state and are not interoperable, namely a lot will break.

What are the problems? generally any time we rely on state like Tags, FiberIDs, Lazy Values, Etc. Also guarding using instanceof isn't ok because class constructors are different.

Potential solution:

A single global package where we manage state, that package should be commonjs with an esm wrapper that re-export the package state.

Further infos: https://nodejs.org/api/packages.html#approach-2-isolate-state

Extract Prelude to its own package

In lue of a potential fp-ts reconciliation it would be better to isolate Prelude in it's own package (probably @effect/prelude) as it represents a port of concepts from zio-prelude (ideally using then HKT from fp-ts), and ideally we would have a similar package (@effect/fp-ts) that ends up exporting instances for fp-ts typeclasses

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.