Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix nomodule (#210)
  • Loading branch information
FredKSchott committed Feb 16, 2020
1 parent ef4b922 commit fb79d10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.ts
Expand Up @@ -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(
Expand Down

0 comments on commit fb79d10

Please sign in to comment.