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.
.json
1 parent 34f0749 commit d76d668Copy full SHA for d76d668
src/processScript/index.ts
@@ -252,6 +252,7 @@ export async function processScript(code: string, {
252
const bundle = await rollup({
253
input: filePathResolved,
254
plugins: [
255
+ rollupPluginJSON({ preferConst: true }),
256
{
257
name: `hackmud-script-manager`,
258
async transform(code, id) {
@@ -288,8 +289,7 @@ export async function processScript(code: string, {
288
289
extensions
290
}),
291
rollupPluginCommonJS(),
- rollupPluginNodeResolve({ extensions }),
292
- rollupPluginJSON()
+ rollupPluginNodeResolve({ extensions })
293
],
294
treeshake: { moduleSideEffects: false }
295
})
0 commit comments