Skip to content

Commit b8185c6

Browse files
authored
fix: Add missing unplugin-typegpu/rolldown-browser entrypoint (#2427)
1 parent 5b116d1 commit b8185c6

6 files changed

Lines changed: 4 additions & 16 deletions

File tree

packages/unplugin-typegpu/src/babel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { NodePath, TraverseOptions } from '@babel/traverse';
22
import defu from 'defu';
33
import { transpileFn } from 'tinyest-for-wgsl';
44
import { FORMAT_VERSION } from 'tinyest';
5-
import { t } from './core/babel-types.ts';
5+
import * as t from '@babel/types';
66
import {
77
type PluginState,
88
defaultOptions,

packages/unplugin-typegpu/src/core/babel-types.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/unplugin-typegpu/src/core/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { t } from './babel-types.ts';
1+
import * as t from '@babel/types';
22
import type { NodePath, TraverseOptions } from '@babel/traverse';
33
import type { FilterPattern } from 'unplugin';
44
import { MagicStringAST } from 'magic-string-ast';

packages/unplugin-typegpu/src/core/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import _traverse, { type NodePath } from '@babel/traverse';
66
import { FORMAT_VERSION } from 'tinyest';
77
import { transpileFn } from 'tinyest-for-wgsl';
88
import * as parser from '@babel/parser';
9-
import { t } from './babel-types.ts';
9+
import * as t from '@babel/types';
1010
import {
1111
defaultOptions,
1212
earlyPruneRegex,

packages/unplugin-typegpu/src/core/polyfill-process.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/unplugin-typegpu/tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineConfig({
99
'src/esbuild.ts',
1010
'src/farm.ts',
1111
'src/rolldown.ts',
12+
'src/rolldown-browser.ts',
1213
'src/rspack.ts',
1314
'src/vite.ts',
1415
'src/webpack.ts',

0 commit comments

Comments
 (0)