Giter Club home page Giter Club logo

Comments (2)

UstymUkhman avatar UstymUkhman commented on May 21, 2024

Hi @RoeelCohen! Thanks for opening this issue, I've reproduced it and you're totally right: as for now tslib module is required. As mentioned in README of tslib:

Because this can avoid duplicate declarations of things like __extends, __assign, etc., this means delivering users smaller files on average, as well as less runtime overhead. For optimized bundles with TypeScript, you should absolutely consider using tslib and --importHelpers.

So I'd like to keep it in vite-plugin-glsl as well. I think the only thing I'm missing here is to add it in dependencies of this project. I'm going to fix it ASAP. As for now, if you'd like to keep using vite-plugin-glsl in your vite vanilla js setup, one possible workaround is to add it manually in you package.json:

{
  "name": "vite-project",
  "version": "0.0.0",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "serve": "vite preview"
  },
  "devDependencies": {
    "tslib": "^2.3.1",
    "vite": "^2.6.4",
    "vite-plugin-glsl": "^0.0.4"
  }
}

from vite-plugin-glsl.

UstymUkhman avatar UstymUkhman commented on May 21, 2024

@RoeelCohen As mentioned above, I've updated this package and tested it with VanillaJS vite config. I'm closing this issue, but feel free to open another one if the problem persists or there's something else I've missed. Thanks for your feedback!

from vite-plugin-glsl.

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.