@atlaspack/bundle-stats 2.14.5-canary.14 → 2.14.5-canary.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +171 -0
- package/lib/bin.js +3 -0
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +6 -3
- package/lib/deep-imports.d.ts +1 -0
- package/lib/deep-imports.js +6 -4
- package/package.json +13 -12
- package/src/bin.js +2 -1
- package/src/{cli.js → cli.ts} +5 -6
- package/src/deep-imports.ts +33 -0
- package/tsconfig.json +4 -0
- package/src/deep-imports.js +0 -30
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,176 @@
|
|
1
1
|
# @atlaspack/bundle-stats
|
2
2
|
|
3
|
+
## 2.14.22
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
|
8
|
+
- @atlaspack/core@2.20.0
|
9
|
+
- @atlaspack/utils@2.17.3
|
10
|
+
- @atlaspack/query@2.14.22
|
11
|
+
- @atlaspack/reporter-bundle-stats@2.14.22
|
12
|
+
|
13
|
+
## 2.14.21
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [[`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
|
18
|
+
- @atlaspack/core@2.19.2
|
19
|
+
- @atlaspack/reporter-bundle-stats@2.14.21
|
20
|
+
- @atlaspack/utils@2.17.2
|
21
|
+
- @atlaspack/query@2.14.21
|
22
|
+
|
23
|
+
## 2.14.20
|
24
|
+
|
25
|
+
### Patch Changes
|
26
|
+
|
27
|
+
- Updated dependencies []:
|
28
|
+
- @atlaspack/core@2.19.1
|
29
|
+
- @atlaspack/utils@2.17.1
|
30
|
+
- @atlaspack/query@2.14.20
|
31
|
+
- @atlaspack/reporter-bundle-stats@2.14.20
|
32
|
+
|
33
|
+
## 2.14.19
|
34
|
+
|
35
|
+
### Patch Changes
|
36
|
+
|
37
|
+
- [#645](https://github.com/atlassian-labs/atlaspack/pull/645) [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3) Thanks [@alshdavid](https://github.com/alshdavid)! - Updated build system and added some extra test-specific code
|
38
|
+
|
39
|
+
- Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`c4415a4`](https://github.com/atlassian-labs/atlaspack/commit/c4415a455543d984ca28452c2cb87a794d22497c), [`f0f7c71`](https://github.com/atlassian-labs/atlaspack/commit/f0f7c7168a1d3d18c6f30d2daed611275692b7c5), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56), [`3ba1aee`](https://github.com/atlassian-labs/atlaspack/commit/3ba1aee6a794a26b2f0255aaf6d003981532d0ae)]:
|
40
|
+
- @atlaspack/utils@2.17.0
|
41
|
+
- @atlaspack/core@2.19.0
|
42
|
+
- @atlaspack/reporter-bundle-stats@2.14.19
|
43
|
+
- @atlaspack/query@2.14.19
|
44
|
+
|
45
|
+
## 2.14.18
|
46
|
+
|
47
|
+
### Patch Changes
|
48
|
+
|
49
|
+
- Updated dependencies []:
|
50
|
+
- @atlaspack/core@2.18.8
|
51
|
+
- @atlaspack/utils@2.16.1
|
52
|
+
- @atlaspack/query@2.14.18
|
53
|
+
- @atlaspack/reporter-bundle-stats@2.14.18
|
54
|
+
|
55
|
+
## 2.14.17
|
56
|
+
|
57
|
+
### Patch Changes
|
58
|
+
|
59
|
+
- Updated dependencies [[`1ff31f1`](https://github.com/atlassian-labs/atlaspack/commit/1ff31f10391c48780c9fcfc243b4e828a1b285e0), [`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
|
60
|
+
- @atlaspack/core@2.18.7
|
61
|
+
- @atlaspack/utils@2.16.0
|
62
|
+
- @atlaspack/query@2.14.17
|
63
|
+
- @atlaspack/reporter-bundle-stats@2.14.17
|
64
|
+
|
65
|
+
## 2.14.16
|
66
|
+
|
67
|
+
### Patch Changes
|
68
|
+
|
69
|
+
- Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be), [`74fd942`](https://github.com/atlassian-labs/atlaspack/commit/74fd94236ac697207082c4b755b079e56f5564fb)]:
|
70
|
+
- @atlaspack/core@2.18.6
|
71
|
+
- @atlaspack/utils@2.15.3
|
72
|
+
- @atlaspack/query@2.14.16
|
73
|
+
- @atlaspack/reporter-bundle-stats@2.14.16
|
74
|
+
|
75
|
+
## 2.14.15
|
76
|
+
|
77
|
+
### Patch Changes
|
78
|
+
|
79
|
+
- Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
|
80
|
+
- @atlaspack/core@2.18.5
|
81
|
+
- @atlaspack/utils@2.15.2
|
82
|
+
- @atlaspack/query@2.14.15
|
83
|
+
- @atlaspack/reporter-bundle-stats@2.14.15
|
84
|
+
|
85
|
+
## 2.14.14
|
86
|
+
|
87
|
+
### Patch Changes
|
88
|
+
|
89
|
+
- Updated dependencies [[`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb), [`6b1f5ff`](https://github.com/atlassian-labs/atlaspack/commit/6b1f5fff68d7131fae075e14f4d2c02606dc6058), [`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`c8f7df4`](https://github.com/atlassian-labs/atlaspack/commit/c8f7df4eadfc4718040fceb065dae6e96a4051e7), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
|
90
|
+
- @atlaspack/core@2.18.4
|
91
|
+
- @atlaspack/utils@2.15.1
|
92
|
+
- @atlaspack/query@2.14.14
|
93
|
+
- @atlaspack/reporter-bundle-stats@2.14.14
|
94
|
+
|
95
|
+
## 2.14.13
|
96
|
+
|
97
|
+
### Patch Changes
|
98
|
+
|
99
|
+
- Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
|
100
|
+
- @atlaspack/utils@2.15.0
|
101
|
+
- @atlaspack/core@2.18.3
|
102
|
+
- @atlaspack/reporter-bundle-stats@2.14.13
|
103
|
+
- @atlaspack/query@2.14.13
|
104
|
+
|
105
|
+
## 2.14.12
|
106
|
+
|
107
|
+
### Patch Changes
|
108
|
+
|
109
|
+
- Updated dependencies []:
|
110
|
+
- @atlaspack/core@2.18.2
|
111
|
+
- @atlaspack/utils@2.14.11
|
112
|
+
- @atlaspack/query@2.14.12
|
113
|
+
- @atlaspack/reporter-bundle-stats@2.14.12
|
114
|
+
|
115
|
+
## 2.14.11
|
116
|
+
|
117
|
+
### Patch Changes
|
118
|
+
|
119
|
+
- Updated dependencies []:
|
120
|
+
- @atlaspack/core@2.18.1
|
121
|
+
- @atlaspack/query@2.14.11
|
122
|
+
- @atlaspack/reporter-bundle-stats@2.14.11
|
123
|
+
|
124
|
+
## 2.14.10
|
125
|
+
|
126
|
+
### Patch Changes
|
127
|
+
|
128
|
+
- Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196), [`0b2f6f5`](https://github.com/atlassian-labs/atlaspack/commit/0b2f6f55794d3ff6e2f5a41f963e7e5dd8ad9f8d), [`6dd4ccb`](https://github.com/atlassian-labs/atlaspack/commit/6dd4ccb753541de32322d881f973d571dd57e4ca)]:
|
129
|
+
- @atlaspack/core@2.18.0
|
130
|
+
- @atlaspack/reporter-bundle-stats@2.14.10
|
131
|
+
- @atlaspack/query@2.14.10
|
132
|
+
- @atlaspack/utils@2.14.10
|
133
|
+
|
134
|
+
## 2.14.9
|
135
|
+
|
136
|
+
### Patch Changes
|
137
|
+
|
138
|
+
- Updated dependencies [[`1940859`](https://github.com/atlassian-labs/atlaspack/commit/194085942f0e86532e9d039fc3f8039badce4594), [`15b6155`](https://github.com/atlassian-labs/atlaspack/commit/15b61556e9114203ebbc9de94b864118ca764598), [`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`d04de26`](https://github.com/atlassian-labs/atlaspack/commit/d04de26af684d7abfba5091fbe3df16a12cd0ebc)]:
|
139
|
+
- @atlaspack/core@2.17.4
|
140
|
+
- @atlaspack/query@2.14.9
|
141
|
+
- @atlaspack/reporter-bundle-stats@2.14.9
|
142
|
+
- @atlaspack/utils@2.14.9
|
143
|
+
|
144
|
+
## 2.14.8
|
145
|
+
|
146
|
+
### Patch Changes
|
147
|
+
|
148
|
+
- Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b), [`3a3e8e7`](https://github.com/atlassian-labs/atlaspack/commit/3a3e8e7be9e2dffd7304436d792f0f595d59665a), [`15c1e3c`](https://github.com/atlassian-labs/atlaspack/commit/15c1e3c0628bae4c768d76cf3afc53d6d0d7ce7c)]:
|
149
|
+
- @atlaspack/core@2.17.3
|
150
|
+
- @atlaspack/query@2.14.8
|
151
|
+
- @atlaspack/reporter-bundle-stats@2.14.8
|
152
|
+
- @atlaspack/utils@2.14.8
|
153
|
+
|
154
|
+
## 2.14.7
|
155
|
+
|
156
|
+
### Patch Changes
|
157
|
+
|
158
|
+
- Updated dependencies []:
|
159
|
+
- @atlaspack/core@2.17.2
|
160
|
+
- @atlaspack/utils@2.14.7
|
161
|
+
- @atlaspack/query@2.14.7
|
162
|
+
- @atlaspack/reporter-bundle-stats@2.14.7
|
163
|
+
|
164
|
+
## 2.14.6
|
165
|
+
|
166
|
+
### Patch Changes
|
167
|
+
|
168
|
+
- Updated dependencies []:
|
169
|
+
- @atlaspack/core@2.17.1
|
170
|
+
- @atlaspack/utils@2.14.6
|
171
|
+
- @atlaspack/query@2.14.6
|
172
|
+
- @atlaspack/reporter-bundle-stats@2.14.6
|
173
|
+
|
3
174
|
## 2.14.5
|
4
175
|
|
5
176
|
### Patch Changes
|
package/lib/bin.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
#! /usr/bin/env node
|
2
2
|
'use strict';
|
3
3
|
|
4
|
+
if (process.env.ATLASPACK_SOURCES === 'true' || process.env.ATLASPACK_BUILD_ENV === 'test' || process.env.ATLASPACK_SELF_BUILD) {
|
5
|
+
require('@atlaspack/babel-register');
|
6
|
+
}
|
4
7
|
const cli = require('./cli');
|
5
8
|
cli.command.parse();
|
package/lib/cli.d.ts
ADDED
package/lib/cli.js
CHANGED
@@ -34,12 +34,17 @@ function _utils() {
|
|
34
34
|
return data;
|
35
35
|
}
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
37
|
-
/* eslint-disable no-console, monorepo/no-internal-import */
|
37
|
+
/* eslint-disable no-console, monorepo/no-internal-import */
|
38
|
+
|
39
|
+
// @ts-expect-error invalid export
|
40
|
+
|
38
41
|
const {
|
39
42
|
loadGraphs,
|
40
43
|
getBundleStats,
|
41
44
|
PackagedBundleClass
|
42
45
|
} = require('./deep-imports.js');
|
46
|
+
|
47
|
+
// @ts-expect-error no types
|
43
48
|
async function run({
|
44
49
|
cacheDir,
|
45
50
|
outDir
|
@@ -65,8 +70,6 @@ async function run({
|
|
65
70
|
recursive: true
|
66
71
|
});
|
67
72
|
let projectRoot = process.cwd();
|
68
|
-
|
69
|
-
// $FlowFixMe[unclear-type]
|
70
73
|
let parcelOptions = {
|
71
74
|
projectRoot
|
72
75
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/deep-imports.js
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
/* eslint-disable monorepo/no-internal-import */
|
4
|
-
|
4
|
+
|
5
|
+
module.exports = process.env.ATLASPACK_BUILD_ENV === 'production' || process.env.ATLASPACK_REGISTER_USE_SRC !== 'true' ? {
|
5
6
|
// Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
|
6
|
-
// $FlowFixMe(unsupported-syntax)
|
7
7
|
loadGraphs: require('@atlaspack/query' + '/lib/index.js').loadGraphs,
|
8
|
-
// $FlowFixMe(unsupported-syntax)
|
9
8
|
getBundleStats: require('@atlaspack/reporter-bundle-stats' + '/lib/BundleStatsReporter.js').getBundleStats,
|
10
|
-
// $FlowFixMe(unsupported-syntax)
|
11
9
|
PackagedBundleClass: require('@atlaspack/core' + '/lib/public/Bundle.js').PackagedBundle
|
10
|
+
} : {
|
11
|
+
loadGraphs: require('@atlaspack/query/src/index.js').loadGraphs,
|
12
|
+
getBundleStats: require('@atlaspack/reporter-bundle-stats/src/BundleStatsReporter.js').getBundleStats,
|
13
|
+
PackagedBundleClass: require('@atlaspack/core/src/public/Bundle.js').PackagedBundle
|
12
14
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/bundle-stats",
|
3
|
-
"version": "2.14.5-canary.
|
3
|
+
"version": "2.14.5-canary.141+2f29297bd",
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -9,30 +9,31 @@
|
|
9
9
|
"type": "git",
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
11
11
|
},
|
12
|
-
"main": "lib/cli.js",
|
13
|
-
"source": "src/cli.
|
12
|
+
"main": "./lib/cli.js",
|
13
|
+
"source": "./src/cli.ts",
|
14
|
+
"types": "./lib/cli.d.ts",
|
14
15
|
"bin": {
|
15
16
|
"atlaspack-bundle-stats": "bin/bundle-stats.js"
|
16
17
|
},
|
17
18
|
"scripts": {
|
18
|
-
"
|
19
|
-
"
|
19
|
+
"dev:prepare": "rimraf ./lib/ && mkdir -p lib && cp ./bin/dev-bin.js ./lib/bin.js",
|
20
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
20
21
|
},
|
21
22
|
"engines": {
|
22
23
|
"node": ">= 16.0.0"
|
23
24
|
},
|
24
25
|
"dependencies": {
|
25
|
-
"@atlaspack/core": "2.16.2-canary.
|
26
|
-
"@atlaspack/query": "2.14.5-canary.
|
27
|
-
"@atlaspack/reporter-bundle-stats": "2.14.5-canary.
|
28
|
-
"@atlaspack/utils": "2.14.5-canary.
|
26
|
+
"@atlaspack/core": "2.16.2-canary.141+2f29297bd",
|
27
|
+
"@atlaspack/query": "2.14.5-canary.141+2f29297bd",
|
28
|
+
"@atlaspack/reporter-bundle-stats": "2.14.5-canary.141+2f29297bd",
|
29
|
+
"@atlaspack/utils": "2.14.5-canary.141+2f29297bd",
|
29
30
|
"commander": "^7.0.0"
|
30
31
|
},
|
31
32
|
"devDependencies": {
|
32
33
|
"@atlaspack/babel-register": "2.14.1",
|
33
|
-
"@atlaspack/types": "2.14.5-canary.
|
34
|
+
"@atlaspack/types": "2.14.5-canary.141+2f29297bd",
|
34
35
|
"rimraf": "^5.0.5"
|
35
36
|
},
|
36
37
|
"type": "commonjs",
|
37
|
-
"gitHead": "
|
38
|
-
}
|
38
|
+
"gitHead": "2f29297bd550840c9840871559349ef773bcbf6d"
|
39
|
+
}
|
package/src/bin.js
CHANGED
package/src/{cli.js → cli.ts}
RENAMED
@@ -1,10 +1,9 @@
|
|
1
1
|
/* eslint-disable no-console, monorepo/no-internal-import */
|
2
|
-
// @flow strict-local
|
3
2
|
import type {PackagedBundle} from '@atlaspack/types';
|
4
3
|
import type {ParcelOptions} from '@atlaspack/core/src/types';
|
4
|
+
// @ts-expect-error invalid export
|
5
5
|
import type {commander$Command} from 'commander';
|
6
6
|
|
7
|
-
// $FlowFixMe[untyped-import]
|
8
7
|
import {version} from '../package.json';
|
9
8
|
|
10
9
|
import commander from 'commander';
|
@@ -18,6 +17,7 @@ const {
|
|
18
17
|
PackagedBundleClass,
|
19
18
|
} = require('./deep-imports.js');
|
20
19
|
|
20
|
+
// @ts-expect-error no types
|
21
21
|
async function run({cacheDir, outDir}) {
|
22
22
|
// 1. load bundle graph and info via parcel~query
|
23
23
|
let {bundleGraph, bundleInfo} = await loadGraphs(cacheDir);
|
@@ -39,12 +39,11 @@ async function run({cacheDir, outDir}) {
|
|
39
39
|
|
40
40
|
let projectRoot = process.cwd();
|
41
41
|
|
42
|
-
|
43
|
-
let parcelOptions: ParcelOptions = ({projectRoot}: any);
|
42
|
+
let parcelOptions: ParcelOptions = {projectRoot} as any;
|
44
43
|
|
45
44
|
let bundlesByTarget: DefaultMap<
|
46
45
|
string /* target name */,
|
47
|
-
Array<PackagedBundle
|
46
|
+
Array<PackagedBundle>
|
48
47
|
> = new DefaultMap(() => []);
|
49
48
|
for (let bundle of bundleGraph.getBundles()) {
|
50
49
|
bundlesByTarget
|
@@ -67,7 +66,7 @@ async function run({cacheDir, outDir}) {
|
|
67
66
|
}
|
68
67
|
}
|
69
68
|
|
70
|
-
export const command: commander
|
69
|
+
export const command: commander.Command = new commander.Command()
|
71
70
|
.version(version, '-V, --version')
|
72
71
|
.description('Generate a stats report for a Parcel build')
|
73
72
|
.option('-v, --verbose', 'Print verbose output')
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/* eslint-disable monorepo/no-internal-import */
|
2
|
+
import {loadGraphs} from '@atlaspack/query/src/index';
|
3
|
+
import {getBundleStats} from '@atlaspack/reporter-bundle-stats/src/BundleStatsReporter';
|
4
|
+
import {PackagedBundle as PackagedBundleClass} from '@atlaspack/core/src/public/Bundle';
|
5
|
+
|
6
|
+
module.exports = (
|
7
|
+
process.env.ATLASPACK_BUILD_ENV === 'production' ||
|
8
|
+
process.env.ATLASPACK_REGISTER_USE_SRC !== 'true'
|
9
|
+
? {
|
10
|
+
// Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
|
11
|
+
loadGraphs: require('@atlaspack/query' + '/lib/index.js').loadGraphs,
|
12
|
+
getBundleStats: require(
|
13
|
+
'@atlaspack/reporter-bundle-stats' + '/lib/BundleStatsReporter.js',
|
14
|
+
).getBundleStats,
|
15
|
+
PackagedBundleClass: require(
|
16
|
+
'@atlaspack/core' + '/lib/public/Bundle.js',
|
17
|
+
).PackagedBundle,
|
18
|
+
}
|
19
|
+
: {
|
20
|
+
loadGraphs: require('@atlaspack/query/src/index.js').loadGraphs,
|
21
|
+
getBundleStats:
|
22
|
+
require('@atlaspack/reporter-bundle-stats/src/BundleStatsReporter.js')
|
23
|
+
.getBundleStats,
|
24
|
+
PackagedBundleClass: require('@atlaspack/core/src/public/Bundle.js')
|
25
|
+
.PackagedBundle,
|
26
|
+
}
|
27
|
+
) as {
|
28
|
+
// @ts-expect-error TS2749
|
29
|
+
loadGraphs: loadGraphs;
|
30
|
+
// @ts-expect-error TS2749
|
31
|
+
getBundleStats: getBundleStats;
|
32
|
+
PackagedBundleClass: PackagedBundleClass;
|
33
|
+
};
|
package/tsconfig.json
ADDED
package/src/deep-imports.js
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
// @flow
|
2
|
-
/* eslint-disable monorepo/no-internal-import */
|
3
|
-
import typeof {loadGraphs} from '@atlaspack/query/src/index';
|
4
|
-
import typeof {getBundleStats} from '@atlaspack/reporter-bundle-stats/src/BundleStatsReporter';
|
5
|
-
import typeof {PackagedBundle as PackagedBundleClass} from '@atlaspack/core/src/public/Bundle';
|
6
|
-
|
7
|
-
module.exports = ((process.env.ATLASPACK_BUILD_ENV === 'production'
|
8
|
-
? {
|
9
|
-
// Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
|
10
|
-
// $FlowFixMe(unsupported-syntax)
|
11
|
-
loadGraphs: require('@atlaspack/query' + '/lib/index.js').loadGraphs,
|
12
|
-
// $FlowFixMe(unsupported-syntax)
|
13
|
-
getBundleStats: require('@atlaspack/reporter-bundle-stats' +
|
14
|
-
'/lib/BundleStatsReporter.js').getBundleStats,
|
15
|
-
// $FlowFixMe(unsupported-syntax)
|
16
|
-
PackagedBundleClass: require('@atlaspack/core' + '/lib/public/Bundle.js')
|
17
|
-
.PackagedBundle,
|
18
|
-
}
|
19
|
-
: {
|
20
|
-
loadGraphs: require('@atlaspack/query/src/index.js').loadGraphs,
|
21
|
-
getBundleStats:
|
22
|
-
require('@atlaspack/reporter-bundle-stats/src/BundleStatsReporter.js')
|
23
|
-
.getBundleStats,
|
24
|
-
PackagedBundleClass: require('@atlaspack/core/src/public/Bundle.js')
|
25
|
-
.PackagedBundle,
|
26
|
-
}): {|
|
27
|
-
loadGraphs: loadGraphs,
|
28
|
-
getBundleStats: getBundleStats,
|
29
|
-
PackagedBundleClass: PackagedBundleClass,
|
30
|
-
|});
|