@teambit/babel 0.0.549 → 0.0.555
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/dist/babel.compiler.d.ts
CHANGED
|
@@ -16,7 +16,13 @@ export declare class BabelCompiler implements Compiler {
|
|
|
16
16
|
constructor(id: string, logger: Logger, compiler: CompilerMain, options: BabelCompilerOptions, babelModule?: typeof babel);
|
|
17
17
|
displayName: string;
|
|
18
18
|
version(): string;
|
|
19
|
+
/**
|
|
20
|
+
* compile one file on the workspace
|
|
21
|
+
*/
|
|
19
22
|
transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput;
|
|
23
|
+
/**
|
|
24
|
+
* compile multiple components on the capsules
|
|
25
|
+
*/
|
|
20
26
|
build(context: BuildContext): Promise<BuiltTaskResult>;
|
|
21
27
|
createTask(name?: string): import("@teambit/compiler/compiler.task").CompilerTask;
|
|
22
28
|
private buildOneCapsule;
|
|
@@ -25,7 +31,13 @@ export declare class BabelCompiler implements Compiler {
|
|
|
25
31
|
name: string;
|
|
26
32
|
globPatterns: string[];
|
|
27
33
|
}[];
|
|
34
|
+
/**
|
|
35
|
+
* given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js
|
|
36
|
+
*/
|
|
28
37
|
getDistPathBySrcPath(srcPath: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* whether babel is able to compile the given path
|
|
40
|
+
*/
|
|
29
41
|
isFileSupported(filePath: string): boolean;
|
|
30
42
|
displayConfig(): string;
|
|
31
43
|
private replaceFileExtToJs;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import type { TransformOptions } from '@babel/core';
|
|
2
2
|
import { CompilerOptions } from '@teambit/compiler';
|
|
3
3
|
export declare type BabelCompilerOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* TransformOptions of Babel. @see https://babeljs.io/docs/en/options
|
|
6
|
+
*
|
|
7
|
+
* `babel.config.json` and `.babelrc.json` use the same options, so you can require the json file
|
|
8
|
+
* and pass it as the option parameter. e.g.
|
|
9
|
+
* ```
|
|
10
|
+
* createCompiler({ babelTransformOptions: require('./babel.config.json') });
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
4
13
|
babelTransformOptions?: TransformOptions;
|
|
5
14
|
} & Partial<CompilerOptions>;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/babel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.555",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/compilation/babel",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compilation",
|
|
8
8
|
"name": "babel",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.555"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"p-map-series": "2.1.0",
|
|
16
16
|
"@babel/runtime": "7.12.18",
|
|
17
17
|
"core-js": "^3.0.0",
|
|
18
|
-
"@teambit/builder": "0.0.
|
|
19
|
-
"@teambit/compilation.modules.babel-compiler": "0.0.
|
|
20
|
-
"@teambit/compiler": "0.0.
|
|
21
|
-
"@teambit/isolator": "0.0.
|
|
22
|
-
"@teambit/logger": "0.0.
|
|
23
|
-
"@teambit/cli": "0.0.
|
|
18
|
+
"@teambit/builder": "0.0.555",
|
|
19
|
+
"@teambit/compilation.modules.babel-compiler": "0.0.101",
|
|
20
|
+
"@teambit/compiler": "0.0.555",
|
|
21
|
+
"@teambit/isolator": "0.0.555",
|
|
22
|
+
"@teambit/logger": "0.0.471",
|
|
23
|
+
"@teambit/cli": "0.0.386"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/fs-extra": "9.0.7",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/jest": "^26.0.0",
|
|
31
31
|
"@types/react-dom": "^17.0.5",
|
|
32
32
|
"@types/node": "12.20.4",
|
|
33
|
-
"@teambit/compilation.aspect-docs.babel": "0.0.
|
|
33
|
+
"@teambit/compilation.aspect-docs.babel": "0.0.105"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@teambit/legacy": "1.0.
|
|
36
|
+
"@teambit/legacy": "1.0.172",
|
|
37
37
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
38
38
|
"react": "^16.8.0 || ^17.0.0"
|
|
39
39
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react": "-"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@teambit/legacy": "1.0.
|
|
64
|
+
"@teambit/legacy": "1.0.172",
|
|
65
65
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
66
66
|
"react": "^16.8.0 || ^17.0.0"
|
|
67
67
|
}
|
package/tsconfig.json
CHANGED
|
Binary file
|