mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
Merge remote-tracking branch 'origin/ni/i6-subclasses' into HEAD
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
// Loads its part through a computed specifier, so it runs in a Node island.
|
||||
// Loads its part through a computed specifier when it loads, so it runs in
|
||||
// a Node island.
|
||||
const { createRequire } = require("node:module");
|
||||
const parts = ["./thing"].map((p) => createRequire(__filename)(p));
|
||||
const parts = [createRequire(__filename)(["./thing"][0])];
|
||||
exports.make = () => new parts[0].Thing();
|
||||
|
||||
Reference in New Issue
Block a user