We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6feee7 commit e3e8246Copy full SHA for e3e8246
src/processScript/index.ts
@@ -258,7 +258,18 @@ export async function processScript(code: string, {
258
rollupPluginJSON({ preferConst: true }),
259
{
260
name: `hackmud-script-manager`,
261
+ resolveId(source) {
262
+ if (source == filePathResolved)
263
+ return filePathResolved
264
+ },
265
+ async load(id) {
266
+ if (id == filePathResolved)
267
+ return (await preprocess(code, { uniqueId })).code
268
269
async transform(code, id) {
270
271
+ return
272
+
273
if (isAbsolutePath(id) && !id.includes(`${pathSeparator}node_modules${pathSeparator}`))
274
return (await preprocess(code, { uniqueId })).code
275
0 commit comments