@embroider/webpack 4.0.4-unstable.ee5e024 → 4.0.4-unstable.f73dd26
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/LICENSE +21 -0
- package/package.json +12 -12
- package/src/virtual-loader.js +1 -1
- package/src/virtual-loader.js.map +1 -1
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
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.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@embroider/webpack",
|
3
|
-
"version": "4.0.4-unstable.
|
3
|
+
"version": "4.0.4-unstable.f73dd26",
|
4
4
|
"private": false,
|
5
5
|
"description": "Builds EmberJS apps with Webpack",
|
6
6
|
"repository": {
|
@@ -16,13 +16,9 @@
|
|
16
16
|
"src/**/*.d.ts",
|
17
17
|
"src/**/*.js.map"
|
18
18
|
],
|
19
|
-
"scripts": {},
|
20
19
|
"dependencies": {
|
21
20
|
"@babel/core": "^7.14.5",
|
22
21
|
"@babel/preset-env": "^7.14.5",
|
23
|
-
"@embroider/babel-loader-9": "3.1.2-unstable.ee5e024",
|
24
|
-
"@embroider/hbs-loader": "3.0.4-unstable.ee5e024",
|
25
|
-
"@embroider/shared-internals": "2.6.2-unstable.ee5e024",
|
26
22
|
"@types/supports-color": "^8.1.0",
|
27
23
|
"assert-never": "^1.2.1",
|
28
24
|
"babel-loader": "^8.2.2",
|
@@ -39,10 +35,12 @@
|
|
39
35
|
"style-loader": "^2.0.0",
|
40
36
|
"supports-color": "^8.1.0",
|
41
37
|
"terser": "^5.7.0",
|
42
|
-
"thread-loader": "^3.0.4"
|
38
|
+
"thread-loader": "^3.0.4",
|
39
|
+
"@embroider/babel-loader-9": "3.1.2-unstable.f73dd26",
|
40
|
+
"@embroider/shared-internals": "2.6.2-unstable.f73dd26",
|
41
|
+
"@embroider/hbs-loader": "3.0.4-unstable.f73dd26"
|
43
42
|
},
|
44
43
|
"devDependencies": {
|
45
|
-
"@embroider/core": "3.4.12-unstable.ee5e024",
|
46
44
|
"@types/csso": "^3.5.1",
|
47
45
|
"@types/debug": "^4.1.5",
|
48
46
|
"@types/fs-extra": "^9.0.12",
|
@@ -51,13 +49,15 @@
|
|
51
49
|
"@types/node": "^15.12.2",
|
52
50
|
"@types/semver": "^7.3.6",
|
53
51
|
"typescript": "^5.4.5",
|
54
|
-
"webpack": "^5.38.1"
|
52
|
+
"webpack": "^5.38.1",
|
53
|
+
"@embroider/core": "^3.4.14-unstable.f73dd26"
|
55
54
|
},
|
56
55
|
"peerDependencies": {
|
57
|
-
"
|
58
|
-
"
|
56
|
+
"webpack": "^5.0.0",
|
57
|
+
"@embroider/core": "^3.4.14-unstable.f73dd26"
|
59
58
|
},
|
60
59
|
"engines": {
|
61
60
|
"node": "12.* || 14.* || >= 16"
|
62
|
-
}
|
63
|
-
}
|
61
|
+
},
|
62
|
+
"scripts": {}
|
63
|
+
}
|
package/src/virtual-loader.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = virtualLoader;
|
3
4
|
const core_1 = require("@embroider/core");
|
4
5
|
let resolverLoader;
|
5
6
|
function setup(appRoot) {
|
@@ -22,5 +23,4 @@ function virtualLoader() {
|
|
22
23
|
}
|
23
24
|
throw new Error(`@embroider/webpack/src/virtual-loader received unexpected request: ${this.query}`);
|
24
25
|
}
|
25
|
-
exports.default = virtualLoader;
|
26
26
|
//# sourceMappingURL=virtual-loader.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"virtual-loader.js","sourceRoot":"","sources":["virtual-loader.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"virtual-loader.js","sourceRoot":"","sources":["virtual-loader.ts"],"names":[],"mappings":";;AAYA,gCAaC;AAzBD,0CAAiE;AAGjE,IAAI,cAA0C,CAAC;AAE/C,SAAS,KAAK,CAAC,OAAe;IAC5B,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,MAAK,OAAO,EAAE,CAAC;QACxC,cAAc,GAAG,IAAI,qBAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAwB,aAAa;IACnC,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;QAC5D,IAAI,MAAM,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,qEAAqE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACrG,CAAC;QACD,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;QAC7B,OAAO,IAAA,qBAAc,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC;IAChD,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,sEAAsE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AACtG,CAAC","sourcesContent":["import { ResolverLoader, virtualContent } from '@embroider/core';\nimport type { LoaderContext } from 'webpack';\n\nlet resolverLoader: ResolverLoader | undefined;\n\nfunction setup(appRoot: string): ResolverLoader {\n if (resolverLoader?.appRoot !== appRoot) {\n resolverLoader = new ResolverLoader(appRoot);\n }\n return resolverLoader;\n}\n\nexport default function virtualLoader(this: LoaderContext<unknown>): string | undefined {\n if (typeof this.query === 'string' && this.query[0] === '?') {\n let params = new URLSearchParams(this.query);\n let filename = params.get('f');\n let appRoot = params.get('a');\n if (!filename || !appRoot) {\n throw new Error(`bug in @embroider/webpack virtual loader, cannot locate params in ${this.query}`);\n }\n let { resolver } = setup(appRoot);\n this.resourcePath = filename;\n return virtualContent(filename, resolver).src;\n }\n throw new Error(`@embroider/webpack/src/virtual-loader received unexpected request: ${this.query}`);\n}\n"]}
|