Skip to content

Commit 73e524b

Browse files
committed
Import from two files in test
1 parent 9d26c38 commit 73e524b

4 files changed

Lines changed: 77 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ function formatted (bndl) { return analyze(bndl, true) }
3939
function analyze (bundle, format) {
4040
let deps = {};
4141
let bundleSize = 0;
42+
// console.log(bundle)
4243
return new Promise((resolve, reject) => {
4344
let modules = bundle.modules.map((m, i) => {
45+
console.log(Object.assign({}, m, {code: 'redacted', originalCode: 'redacted'}));
4446
let id = m.id.replace(root, '');
4547
let size = Buffer.byteLength(m.code, 'utf8') || 0;
4648
bundleSize += size;

test/_bundleme.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3-
import { aSmallConst } from './_importme'
3+
import { aSmallConst } from './_import-me'
4+
import { anotherSmallConst } from './_import-me-too'
45

5-
console.log(aSmallConst.length)
6+
console.log(aSmallConst.length, anotherSmallConst.length)

test/_import-me-too.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
export const anotherSmallConst = 'abcd'

test/_import-me.js

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)