Skip to content

Commit

Permalink
SAVEPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Sep 1, 2020
1 parent 4379cf2 commit 6d7c064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export default async function microbundle(inputOptions) {
input: options.input,
});

// console.log(options.entries, options.input, options.output);

options.multipleEntries = options.entries.length > 1;

let formats = (options.format || options.formats).split(',');
Expand Down Expand Up @@ -110,6 +112,7 @@ export default async function microbundle(inputOptions) {
if (inputOptions.cache !== false) {
inputOptions.cache = cache;
}
// console.log(inputOptions);
let bundle = await rollup(inputOptions);
cache = bundle;
await bundle.write(outputOptions);
Expand Down Expand Up @@ -398,13 +401,13 @@ function createConfig(options, entry, format, writeMeta) {
const absMain = resolve(options.cwd, getMain({ options, entry, format }));
const outputDir = dirname(absMain);
const outputEntryFileName = basename(absMain);
console.log(outputEntryFileName, outputAliases);

let config = {
/** @type {import('rollup').InputOptions} */
inputOptions: {
// disable Rollup's cache for the modern build to prevent re-use of legacy transpiled modules:
cache,

input: entry,
external: id => {
if (id === 'babel-plugin-transform-async-to-promises/helpers') {
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/ts-declaration/types/index.d.ts

This file was deleted.

0 comments on commit 6d7c064

Please sign in to comment.