@putout/engine-loader 10.0.0 → 11.0.0
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/lib/transforms/babel.js +5 -5
- package/package.json +4 -4
package/lib/transforms/babel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const {
|
|
4
|
-
|
|
4
|
+
createConfigItemSync,
|
|
5
5
|
transformFromAstSync,
|
|
6
6
|
} = require('@babel/core');
|
|
7
7
|
|
|
@@ -10,12 +10,12 @@ const isString = (a) => typeof a === 'string';
|
|
|
10
10
|
module.exports = (ast, code, name) => {
|
|
11
11
|
const plugin = !isString(name) ? name : require(name);
|
|
12
12
|
|
|
13
|
+
// globally installed modules support
|
|
14
|
+
const configItem = createConfigItemSync(plugin);
|
|
15
|
+
|
|
13
16
|
transformFromAstSync(ast, code, {
|
|
14
17
|
cloneInputAst: false,
|
|
15
|
-
plugins: [
|
|
16
|
-
// globally installed modules support
|
|
17
|
-
createConfigItem(plugin),
|
|
18
|
-
],
|
|
18
|
+
plugins: [configItem],
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
return ast;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "load plugins and prepare them to run",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"report": "madrun report"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/core": "^
|
|
27
|
+
"@babel/core": "^8.0.0-alpha.1",
|
|
28
28
|
"@putout/engine-parser": "^7.1.0",
|
|
29
29
|
"diff-match-patch": "^1.0.4",
|
|
30
30
|
"nano-memoize": "^3.0.11",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"c8": "^8.0.0",
|
|
53
53
|
"eslint": "^8.0.1",
|
|
54
54
|
"eslint-plugin-n": "^16.0.0",
|
|
55
|
-
"eslint-plugin-putout": "^
|
|
55
|
+
"eslint-plugin-putout": "^19.0.0",
|
|
56
56
|
"estrace": "*",
|
|
57
57
|
"just-camel-case": "^4.0.2",
|
|
58
58
|
"lerna": "^6.0.1",
|
|
59
59
|
"madrun": "^9.0.0",
|
|
60
60
|
"mock-require": "^3.0.3",
|
|
61
61
|
"montag": "^1.0.0",
|
|
62
|
-
"nodemon": "^
|
|
62
|
+
"nodemon": "^3.0.1",
|
|
63
63
|
"putout": "*",
|
|
64
64
|
"supertape": "^8.0.0"
|
|
65
65
|
},
|