Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996277
build.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
text/x-java
Expires
Tue, Dec 24, 14:02 (16 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556533
Default Alt Text
build.js (639 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment