From fb79d10a9c62c8a77a615b325b45a4552115c0ad Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Sun, 16 Feb 2020 09:57:01 -0800 Subject: [PATCH] fix nomodule (#210) --- src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7571091513..bf50e5a798 100644 --- a/src/index.ts +++ b/src/index.ts @@ -408,11 +408,15 @@ export async function install( } try { const noModuleBundle = await rollup.rollup({ - input: nomodule, + input: path.resolve(cwd, nomodule), inlineDynamicImports: true, plugins: [...inputOptions.plugins, rollupResolutionHelper()], }); - await noModuleBundle.write({file: path.resolve(destLoc, nomoduleOutput), format: 'iife'}); + await noModuleBundle.write({ + file: path.resolve(destLoc, nomoduleOutput), + format: 'iife', + name: 'App', + }); const nomoduleEnd = Date.now() - nomoduleStart; spinner.info( `${chalk.bold(