@nebulare/bundler
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,2 @@ export interface BundlerOptions { | ||
} | ||
export declare function bundler(opts: BundlerOptions): Promise<void>; | ||
export declare function bundleApp(opts: BundlerOptions): Promise<void>; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bundler = void 0; | ||
exports.bundleApp = void 0; | ||
const rollup_1 = require("rollup"); | ||
@@ -40,6 +40,5 @@ const path_1 = __importDefault(require("path")); | ||
} | ||
async function bundler(opts) { | ||
async function bundleApp(opts) { | ||
const { input, outputDir } = opts; | ||
const outputFile = path_1.default.join(outputDir, 'index.js'); | ||
const startTime = Date.now(); | ||
const { inputOptions, outputOptions } = getRollupOptions(input, outputFile, process.env.mode); | ||
@@ -49,5 +48,3 @@ await fs_extra_1.default.emptyDir(outputDir); | ||
await bundle.write(outputOptions); | ||
const endTime = Date.now(); | ||
console.log(`build success,cost ${endTime - startTime}ms`); | ||
} | ||
exports.bundler = bundler; | ||
exports.bundleApp = bundleApp; |
{ | ||
"name": "@nebulare/bundler", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Nebula UI kit bundler", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "00958c4cc95dee485bc485ccfdcf08dbcac7073a" | ||
"gitHead": "68d8e15df380e935acc847f10752a70a222e20be" | ||
} |
5078
105