@umijs/bundler-utils 3.5.20 → 4.0.0-beta.4
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/README.md +2 -0
- package/compiled/@babel/code-frame/LICENSE +22 -0
- package/compiled/@babel/code-frame/index.d.ts +54 -0
- package/compiled/@babel/code-frame/package.json +1 -0
- package/compiled/@babel/core/LICENSE +22 -0
- package/compiled/@babel/core/index.d.ts +771 -0
- package/compiled/@babel/core/package.json +1 -0
- package/compiled/@babel/generator/LICENSE +22 -0
- package/compiled/@babel/generator/index.d.ts +212 -0
- package/compiled/@babel/generator/package.json +1 -0
- package/compiled/@babel/parser/LICENSE +19 -0
- package/compiled/@babel/parser/package.json +1 -0
- package/compiled/@babel/parser/typings/babel-parser.d.ts +203 -0
- package/compiled/@babel/template/LICENSE +22 -0
- package/compiled/@babel/template/index.d.ts +100 -0
- package/compiled/@babel/template/package.json +1 -0
- package/compiled/@babel/traverse/LICENSE +22 -0
- package/compiled/@babel/traverse/index.d.ts +1172 -0
- package/compiled/@babel/traverse/package.json +1 -0
- package/compiled/@babel/types/LICENSE +22 -0
- package/compiled/@babel/types/lib/index-legacy.d.ts +2692 -0
- package/compiled/@babel/types/package.json +1 -0
- package/compiled/babel/code-frame.d.ts +3 -0
- package/compiled/babel/code-frame.js +1 -0
- package/compiled/babel/core.d.ts +3 -0
- package/compiled/babel/core.js +1 -0
- package/compiled/babel/generator.d.ts +3 -0
- package/compiled/babel/generator.js +1 -0
- package/compiled/babel/index.js +101726 -0
- package/compiled/babel/parser.d.ts +3 -0
- package/compiled/babel/parser.js +1 -0
- package/compiled/babel/plugin-proposal-decorators.js +1 -0
- package/compiled/babel/plugin-proposal-do-expressions.js +1 -0
- package/compiled/babel/plugin-proposal-export-default-from.js +1 -0
- package/compiled/babel/plugin-proposal-export-namespace-from.js +1 -0
- package/compiled/babel/plugin-proposal-function-bind.js +1 -0
- package/compiled/babel/plugin-proposal-partial-application.js +1 -0
- package/compiled/babel/plugin-proposal-pipeline-operator.js +1 -0
- package/compiled/babel/plugin-proposal-record-and-tuple.js +1 -0
- package/compiled/babel/plugin-transform-runtime.js +1 -0
- package/compiled/babel/preset-env.js +1 -0
- package/compiled/babel/preset-react.js +1 -0
- package/compiled/babel/preset-typescript.js +1 -0
- package/compiled/babel/register.js +1 -0
- package/compiled/babel/source-map-support.js +625 -0
- package/compiled/babel/template.d.ts +3 -0
- package/compiled/babel/template.js +1 -0
- package/compiled/babel/traverse.d.ts +3 -0
- package/compiled/babel/traverse.js +1 -0
- package/compiled/babel/types.d.ts +1 -0
- package/compiled/babel/types.js +1 -0
- package/compiled/cjs-module-lexer/LICENSE +10 -0
- package/compiled/cjs-module-lexer/index.js +1 -0
- package/compiled/cjs-module-lexer/lexer.d.ts +7 -0
- package/compiled/cjs-module-lexer/package.json +1 -0
- package/compiled/es-module-lexer/LICENSE +10 -0
- package/compiled/es-module-lexer/index.js +1 -0
- package/compiled/es-module-lexer/package.json +1 -0
- package/compiled/es-module-lexer/types/lexer.d.ts +86 -0
- package/compiled/esbuild/index.d.ts +1 -0
- package/compiled/esbuild/index.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/package.json +70 -14
- package/lib/getBabelOpts.d.ts +0 -42
- package/lib/getBabelOpts.js +0 -112
- package/lib/getTargetsAndBrowsersList.d.ts +0 -10
- package/lib/getTargetsAndBrowsersList.js +0 -50
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -42
package/README.md
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Type definitions for @babel/code-frame 7.0
|
|
2
|
+
// Project: https://github.com/babel/babel/tree/master/packages/babel-code-frame, https://babeljs.io
|
|
3
|
+
// Definitions by: Mohsen Azimi <https://github.com/mohsen1>
|
|
4
|
+
// Forbes Lindesay <https://github.com/ForbesLindesay>
|
|
5
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
+
|
|
7
|
+
export interface SourceLocation {
|
|
8
|
+
start: { line: number; column?: number | undefined };
|
|
9
|
+
end?: { line: number; column?: number | undefined } | undefined;
|
|
10
|
+
}
|
|
11
|
+
export function codeFrameColumns(
|
|
12
|
+
rawLines: string,
|
|
13
|
+
location: SourceLocation,
|
|
14
|
+
options?: BabelCodeFrameOptions
|
|
15
|
+
): string;
|
|
16
|
+
|
|
17
|
+
export interface BabelCodeFrameOptions {
|
|
18
|
+
/** Syntax highlight the code as JavaScript for terminals. default: false */
|
|
19
|
+
highlightCode?: boolean | undefined;
|
|
20
|
+
/** The number of lines to show above the error. default: 2 */
|
|
21
|
+
linesAbove?: number | undefined;
|
|
22
|
+
/** The number of lines to show below the error. default: 3 */
|
|
23
|
+
linesBelow?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Forcibly syntax highlight the code as JavaScript (for non-terminals);
|
|
26
|
+
* overrides highlightCode.
|
|
27
|
+
* default: false
|
|
28
|
+
*/
|
|
29
|
+
forceColor?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Pass in a string to be displayed inline (if possible) next to the
|
|
32
|
+
* highlighted location in the code. If it can't be positioned inline,
|
|
33
|
+
* it will be placed above the code frame.
|
|
34
|
+
* default: nothing
|
|
35
|
+
*/
|
|
36
|
+
message?: string | undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Generate errors that contain a code frame that point to source locations.
|
|
41
|
+
*
|
|
42
|
+
* @param rawLines Raw lines to frame
|
|
43
|
+
* @param lineNumber Line number (1 indexed)
|
|
44
|
+
* @param colNumber Column number
|
|
45
|
+
* @param options Additional options
|
|
46
|
+
*
|
|
47
|
+
* @returns Framed code
|
|
48
|
+
*/
|
|
49
|
+
export default function codeFrame(
|
|
50
|
+
rawLines: string,
|
|
51
|
+
lineNumber: number,
|
|
52
|
+
colNumber: number,
|
|
53
|
+
options?: BabelCodeFrameOptions
|
|
54
|
+
): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@babel/code-frame","author":"The Babel Team (https://babel.dev/team)","license":"MIT"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|