11import pkg from "./package.json" with { type : "json" } ;
22import esbuild from "esbuild" ;
33import { glsl } from "esbuild-plugin-glsl" ;
4- import glob from "tiny-glob " ;
4+ import { glob } from "node:fs/promises " ;
55
66const minify = process . argv . includes ( "-m" ) ;
77const external = [ "three" , "spatial-controls" , "tweakpane" , "@tweakpane/plugin-essentials" ] ;
@@ -17,7 +17,7 @@ const banner = `/**
1717// #region Library
1818
1919const workers = {
20- entryPoints : await glob ( "./src/**/worker.ts" ) ,
20+ entryPoints : await Array . fromAsync ( glob ( "./src/**/worker.ts" ) ) ,
2121 outExtension : { ".js" : ".txt" } ,
2222 outdir : "./temp" ,
2323 logLevel : "info" ,
@@ -55,7 +55,7 @@ const vendor = {
5555
5656const manual = {
5757 entryPoints : [ "./manual/assets/js/src/index.ts" ]
58- . concat ( await glob ( "./manual/assets/js/src/demos/*.ts" ) ) ,
58+ . concat ( await Array . fromAsync ( glob ( "./manual/assets/js/src/demos/*.ts" ) ) ) ,
5959 outdir : "./manual/assets/js/dist" ,
6060 logLevel : "info" ,
6161 format : "iife" ,
@@ -67,7 +67,7 @@ const manual = {
6767} ;
6868
6969const inline = {
70- entryPoints : await glob ( "./manual/assets/js/src/inline/*.ts" ) ,
70+ entryPoints : await Array . fromAsync ( glob ( "./manual/assets/js/src/inline/*.ts" ) ) ,
7171 outdir : "./manual/assets/js/dist/inline" ,
7272 logLevel : "info" ,
7373 format : "iife" ,
0 commit comments