aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/JSBundler.classes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/api/JSBundler.classes.ts')
-rw-r--r--src/bun.js/api/JSBundler.classes.ts51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/bun.js/api/JSBundler.classes.ts b/src/bun.js/api/JSBundler.classes.ts
new file mode 100644
index 000000000..5eeed30f0
--- /dev/null
+++ b/src/bun.js/api/JSBundler.classes.ts
@@ -0,0 +1,51 @@
+import { define } from "../scripts/class-definitions";
+
+export default [
+ define({
+ name: "Transpiler",
+ construct: true,
+ finalize: true,
+ hasPendingActivity: false,
+ configurable: false,
+ klass: {},
+ JSType: "0b11101110",
+ proto: {
+ scanImports: {
+ fn: "scanImports",
+ length: 2,
+ },
+ scan: {
+ fn: "scan",
+ length: 2,
+ },
+ transform: {
+ fn: "transform",
+ length: 2,
+ },
+ transformSync: {
+ fn: "transformSync",
+ length: 2,
+ },
+ },
+ }),
+
+ define({
+ name: "Bundler",
+ construct: true,
+ finalize: true,
+ hasPendingActivity: true,
+ configurable: false,
+ klass: {},
+ JSType: "0b11101110",
+ proto: {
+ handle: {
+ fn: "handleRequest",
+ length: 2,
+ },
+ write: {
+ fn: "write",
+ length: 1,
+ },
+ },
+ }),
+];