@embroider/test-setup 2.1.2-unstable.e2cd385 → 2.1.2-unstable.e891bf1
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 +5 -2
- package/src/index.js +4 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@embroider/test-setup",
|
3
|
-
"version": "2.1.2-unstable.
|
3
|
+
"version": "2.1.2-unstable.e891bf1",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/embroider-build/embroider.git",
|
@@ -16,7 +16,10 @@
|
|
16
16
|
"resolve": "^1.20.0"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
|
-
"@embroider/compat": "2.1.2-unstable.
|
19
|
+
"@embroider/compat": "2.1.2-unstable.e891bf1",
|
20
|
+
"@embroider/core": "2.1.2-unstable.e891bf1",
|
21
|
+
"@embroider/webpack": "2.1.2-unstable.e891bf1",
|
22
|
+
"@types/lodash": "^4.14.170"
|
20
23
|
},
|
21
24
|
"engines": {
|
22
25
|
"node": "12.* || 14.* || >= 16"
|
package/src/index.js
CHANGED
@@ -17,12 +17,11 @@ function maybeEmbroider(app, opts = {}) {
|
|
17
17
|
// - we don't want to load any of these things until they're actually needed;
|
18
18
|
// - we can't use `await import()` because this function needs to be synchronous to go inside ember-cli-build.js
|
19
19
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
20
|
-
let
|
21
|
-
|
22
|
-
basedir: app.project.root,
|
20
|
+
let { Webpack } = require(require.resolve('@embroider/webpack', {
|
21
|
+
paths: [app.project.root],
|
23
22
|
}));
|
24
|
-
let Compat = require(resolve
|
25
|
-
|
23
|
+
let Compat = require(require.resolve('@embroider/compat', {
|
24
|
+
paths: [app.project.root],
|
26
25
|
}));
|
27
26
|
let mergeWith = require('lodash/mergeWith');
|
28
27
|
/* eslint-enable @typescript-eslint/no-require-imports */
|