Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22394620
build.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
639 B
Referenced Files
None
Subscribers
None
build.js
View Options
import
*
as
esbuild
from
"esbuild"
;
import
{
default
as
glob
}
from
"tiny-glob"
;
// commented out as it seemingly works without that
// import { remove_named_imports } from "./remove-named-imports.js";
const
entryPoints
=
(
await
glob
(
"./src/**/*.{js,ts,tsx}"
)).
filter
(
(
path
)
=>
!
path
.
includes
(
".#"
)
);
const
args
=
{
entryPoints
,
sourcemap
:
true
,
bundle
:
false
,
outdir
:
"./lib/"
,
logLevel
:
"info"
,
platform
:
"node"
,
target
:
"es2022"
,
format
:
"esm"
,
// plugins: [remove_named_imports],
};
if
(
process
.
argv
.
includes
(
"--watch"
))
{
const
context
=
await
esbuild
.
context
(
args
);
context
.
watch
();
}
else
{
esbuild
.
build
(
args
);
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 16:19 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1200705
Default Alt Text
build.js (639 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline