@embroider/webpack 3.2.1 → 3.2.2-unstable.04bf3a7
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/package.json +12 -12
- package/src/ember-webpack.js +4 -4
- package/LICENSE +0 -21
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@embroider/webpack",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.2-unstable.04bf3a7",
|
4
4
|
"private": false,
|
5
5
|
"description": "Builds EmberJS apps with Webpack",
|
6
6
|
"repository": {
|
@@ -16,8 +16,12 @@
|
|
16
16
|
"src/**/*.d.ts",
|
17
17
|
"src/**/*.js.map"
|
18
18
|
],
|
19
|
+
"scripts": {},
|
19
20
|
"dependencies": {
|
20
21
|
"@babel/core": "^7.14.5",
|
22
|
+
"@embroider/babel-loader-9": "3.1.2-unstable.04bf3a7",
|
23
|
+
"@embroider/hbs-loader": "3.0.4-unstable.04bf3a7",
|
24
|
+
"@embroider/shared-internals": "2.5.2-unstable.04bf3a7",
|
21
25
|
"@types/supports-color": "^8.1.0",
|
22
26
|
"assert-never": "^1.2.1",
|
23
27
|
"babel-loader": "^8.2.2",
|
@@ -35,12 +39,10 @@
|
|
35
39
|
"style-loader": "^2.0.0",
|
36
40
|
"supports-color": "^8.1.0",
|
37
41
|
"terser": "^5.7.0",
|
38
|
-
"thread-loader": "^3.0.4"
|
39
|
-
"@embroider/babel-loader-9": "3.1.1",
|
40
|
-
"@embroider/hbs-loader": "3.0.3",
|
41
|
-
"@embroider/shared-internals": "2.5.1"
|
42
|
+
"thread-loader": "^3.0.4"
|
42
43
|
},
|
43
44
|
"devDependencies": {
|
45
|
+
"@embroider/core": "3.4.2-unstable.04bf3a7",
|
44
46
|
"@types/csso": "^3.5.1",
|
45
47
|
"@types/debug": "^4.1.5",
|
46
48
|
"@types/fs-extra": "^9.0.12",
|
@@ -49,15 +51,13 @@
|
|
49
51
|
"@types/node": "^15.12.2",
|
50
52
|
"@types/semver": "^7.3.6",
|
51
53
|
"typescript": "^5.1.6",
|
52
|
-
"webpack": "^5.38.1"
|
53
|
-
"@embroider/core": "^3.4.0"
|
54
|
+
"webpack": "^5.38.1"
|
54
55
|
},
|
55
56
|
"peerDependencies": {
|
56
|
-
"
|
57
|
-
"
|
57
|
+
"@embroider/core": "3.4.2-unstable.04bf3a7",
|
58
|
+
"webpack": "^5.0.0"
|
58
59
|
},
|
59
60
|
"engines": {
|
60
61
|
"node": "12.* || 14.* || >= 16"
|
61
|
-
}
|
62
|
-
|
63
|
-
}
|
62
|
+
}
|
63
|
+
}
|
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
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2018 Edward Faulkner
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|