Skip to content

Remove GPU.js import #753

Closed
Closed

Description

@wojciechczerniak

Description

Our Config.js imports GPU just to correctly mark the types

gpujs?: typeof GPU,

But this confuses some build tools (Angular 🙄) that will try to import the package, requiring installing it even if user has no intent of using the GPU acceleration. Or worse, in case of Handsontable, when client has no intent of using the formula plugin.

We should remove the import and type it on our own as close as we can just enough to match gpu.js

Develop breaks it even further

We've lost type import and therefore it will be worse, as newer TS versions can ignore such import. But full import will require a package installed

Develop:

import {GPU} from 'gpu.js'

Master:

import type { GPU } from 'gpu.js'

Edit: tracked to #669

Your environment

  • HyperFormula version: develop
  • Browser Name and version: any
  • Operating System: MacOS

Links

handsontable/handsontable#8358

Activity

  1. added
    Bug
    on Jul 5, 2021
  2. linked a pull request that will close this issueremoving gpujs from deps #754on Jul 7, 2021
  3. wojciechczerniak commented on Jul 7, 2021

    @wojciechczerniak
    ContributorAuthor

    Done in #754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions