Skip to content

fix: unplugin-typegpu exports .ts file when imported from workspace:* #2605

Description

@cieplypolar

We cannot test if unplugin-typegpu works correctly when used in babel.config.js.
The reason is that we locally export only .ts file.

Expected:

module.exports = (api) => {
  api.cache(true);
  return {
    presets: ['next/babel'],
    plugins: ['unplugin-typegpu/babel'], // cannot parse .ts file
  };
};

Current:

module.exports = (api) => {
  api.cache(true);
  return {
    presets: ['next/babel'],
    plugins: ['./node_modules/unplugin-typegpu/dist/babel.js'],
  };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first human issueGood for human newcomersinternal-dxDeveloper Experience of working with the library, improving internal workflows, CI

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions