@embroider/webpack 3.2.2-unstable.bb9dfa8 → 3.2.2-unstable.d8895a2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -6
- package/src/ember-webpack.js +4 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@embroider/webpack",
|
3
|
-
"version": "3.2.2-unstable.
|
3
|
+
"version": "3.2.2-unstable.d8895a2",
|
4
4
|
"private": false,
|
5
5
|
"description": "Builds EmberJS apps with Webpack",
|
6
6
|
"repository": {
|
@@ -19,9 +19,9 @@
|
|
19
19
|
"scripts": {},
|
20
20
|
"dependencies": {
|
21
21
|
"@babel/core": "^7.14.5",
|
22
|
-
"@embroider/babel-loader-9": "3.1.2-unstable.
|
23
|
-
"@embroider/hbs-loader": "3.0.4-unstable.
|
24
|
-
"@embroider/shared-internals": "2.5.2-unstable.
|
22
|
+
"@embroider/babel-loader-9": "3.1.2-unstable.d8895a2",
|
23
|
+
"@embroider/hbs-loader": "3.0.4-unstable.d8895a2",
|
24
|
+
"@embroider/shared-internals": "2.5.2-unstable.d8895a2",
|
25
25
|
"@types/supports-color": "^8.1.0",
|
26
26
|
"assert-never": "^1.2.1",
|
27
27
|
"babel-loader": "^8.2.2",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"thread-loader": "^3.0.4"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@embroider/core": "3.4.
|
45
|
+
"@embroider/core": "3.4.3-unstable.d8895a2",
|
46
46
|
"@types/csso": "^3.5.1",
|
47
47
|
"@types/debug": "^4.1.5",
|
48
48
|
"@types/fs-extra": "^9.0.12",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"webpack": "^5.38.1"
|
55
55
|
},
|
56
56
|
"peerDependencies": {
|
57
|
-
"@embroider/core": "3.4.
|
57
|
+
"@embroider/core": "3.4.3-unstable.d8895a2",
|
58
58
|
"webpack": "^5.0.0"
|
59
59
|
},
|
60
60
|
"engines": {
|
package/src/ember-webpack.js
CHANGED
@@ -450,7 +450,7 @@ const Webpack = (_a = class Webpack {
|
|
450
450
|
// in the browser we don't need to worry about lazy assets (they will be
|
451
451
|
// handled automatically by webpack as needed), but in any other runtime
|
452
452
|
// we need the ability to preload them
|
453
|
-
output.lazyBundles.set(id, (0, flatMap_1.default)(chunks.filter(chunk => { var
|
453
|
+
output.lazyBundles.set(id, (0, flatMap_1.default)(chunks.filter(chunk => { var _b; return (_b = chunk.runtime) === null || _b === void 0 ? void 0 : _b.includes(id); }), chunk => chunk.files).filter(file => !(entrypointAssets === null || entrypointAssets === void 0 ? void 0 : entrypointAssets.find(a => a.name === file))));
|
454
454
|
}
|
455
455
|
}
|
456
456
|
}
|
@@ -531,10 +531,10 @@ const Webpack = (_a = class Webpack {
|
|
531
531
|
}
|
532
532
|
}
|
533
533
|
findBestError(errors) {
|
534
|
-
var
|
534
|
+
var _b, _c;
|
535
535
|
let error = errors[0];
|
536
536
|
let file;
|
537
|
-
if ((
|
537
|
+
if ((_b = error.module) === null || _b === void 0 ? void 0 : _b.userRequest) {
|
538
538
|
file = (0, path_1.relative)(this.pathToVanillaApp, error.module.userRequest);
|
539
539
|
}
|
540
540
|
if (!error.file) {
|
@@ -544,7 +544,7 @@ const Webpack = (_a = class Webpack {
|
|
544
544
|
error.line = (error.loc ? error.loc.line : null) || (error.location ? error.location.line : null);
|
545
545
|
}
|
546
546
|
if (typeof error.message === 'string') {
|
547
|
-
if ((
|
547
|
+
if ((_c = error.module) === null || _c === void 0 ? void 0 : _c.context) {
|
548
548
|
error.message = error.message.replace(error.module.context, error.module.userRequest);
|
549
549
|
}
|
550
550
|
// the tmpdir on OSX is horribly long and makes error messages hard to
|