-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrolldown.config.js
More file actions
35 lines (33 loc) · 785 Bytes
/
rolldown.config.js
File metadata and controls
35 lines (33 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'rolldown'
let modulesCount = 0;
export default defineConfig({
input: 'src/static.test.mjs',
platform: 'node',
// [UNLOADABLE_DEPENDENCY] Error: Could not load ... .node
external: [
"fsevents",
"@swc/core",
"oxc-resolver",
"ssh2",
"@parcel/watcher",
"jest-resolve",
"@unrs/resolver-binding-linux-x64-musl",
"@oxc-parser/binding-linux-x64-musl",
"@oxc-parser/binding-linux-x64-gnu",
"@unrs/resolver-binding-linux-x64-gnu"
],
resolve: {
extensions: [".js", ".cjs", ".mjs", ".json"]
},
plugins: [
{
name: "counter",
transform() {
modulesCount += 1;
},
buildEnd() {
console.log("Total number of modules processed: " + modulesCount);
}
}
]
})