@marko/compiler 5.39.49 → 5.39.51
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-plugin/file.js +2 -2
- package/dist/babel-plugin/index.js +24 -19
- package/dist/babel-plugin/parser.js +39 -39
- package/dist/babel-plugin/plugins/migrate.js +4 -4
- package/dist/babel-plugin/plugins/transform.js +4 -4
- package/dist/babel-utils/imports.js +2 -2
- package/dist/babel-utils/parse.js +12 -9
- package/dist/babel-utils/tags.js +2 -2
- package/dist/babel-utils/template-string.js +2 -2
- package/dist/babel.js +65127 -0
- package/dist/config.js +2 -2
- package/dist/index.js +18 -10
- package/dist/taglib/index.js +2 -2
- package/dist/types.d.ts +11 -11
- package/dist/util/build-code-frame.js +3 -3
- package/dist/util/try-load-translator.js +2 -2
- package/internal/babel/index.ts +22 -0
- package/internal/babel/modules.d.ts +3 -0
- package/internal/babel/package.json +5 -0
- package/package.json +8 -15
- package/dist/babel-types/generator/patch.js +0 -377
- package/dist/babel-types/index.js +0 -5
- package/dist/babel-types/traverse/patch.js +0 -133
- package/dist/babel-types/types/definitions.js +0 -254
- package/dist/babel-types/types/patch.js +0 -122
package/dist/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.__esModule = true;exports.default = void 0;var _modules = require("@marko/compiler/modules");
|
|
2
2
|
var _fs = _interopRequireDefault(require("fs"));
|
|
3
3
|
|
|
4
4
|
|
|
@@ -180,7 +180,7 @@ var _fs = _interopRequireDefault(require("fs"));
|
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
|
|
183
|
-
var _config = _interopRequireDefault(require("./taglib/config"));const config = { // The default output mode for compiled templates
|
|
183
|
+
var _config = _interopRequireDefault(require("./taglib/config"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}const config = { // The default output mode for compiled templates
|
|
184
184
|
output: "html", // Override the runtimeid used when calling `marko/components.init` in the `hydrate` output.
|
|
185
185
|
runtimeId: null, /**
|
|
186
186
|
* Remove all typescript types from the output.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";exports.__esModule = true;exports._clearDefaults = _clearDefaults;exports.compile = compile;exports.compileFile = compileFile;exports.compileFileSync = compileFileSync;exports.compileSync = compileSync;exports.configure = configure;exports.getRuntimeEntryFiles = getRuntimeEntryFiles;exports.taglib = exports.globalConfig = void 0;var _babelUtils = require("@marko/compiler/babel-utils");
|
|
2
|
+
var _babel = require("@marko/compiler/internal/babel");exports.types = _babel.types;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
5
10
|
var _modules = _interopRequireDefault(require("@marko/compiler/modules"));
|
|
6
11
|
var _path = _interopRequireDefault(require("path"));
|
|
7
12
|
|
|
@@ -11,7 +16,7 @@ var taglib = _interopRequireWildcard(require("./taglib"));exports.taglib = tagli
|
|
|
11
16
|
var _buildCodeFrame = require("./util/build-code-frame");
|
|
12
17
|
var _mergeErrors = _interopRequireDefault(require("./util/merge-errors"));
|
|
13
18
|
var _shouldOptimize = _interopRequireDefault(require("./util/should-optimize"));
|
|
14
|
-
var _tryLoadTranslator = _interopRequireDefault(require("./util/try-load-translator"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
|
|
19
|
+
var _tryLoadTranslator = _interopRequireDefault(require("./util/try-load-translator"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
|
|
15
20
|
|
|
16
21
|
|
|
17
22
|
let globalConfig = exports.globalConfig = { ..._config.default };
|
|
@@ -22,14 +27,14 @@ function configure(newConfig) {
|
|
|
22
27
|
async function compile(src, filename, config) {
|
|
23
28
|
const markoConfig = loadMarkoConfig(config);
|
|
24
29
|
const babelConfig = await loadBabelConfig(filename, markoConfig);
|
|
25
|
-
const babelResult = await
|
|
30
|
+
const babelResult = await (0, _babel.transformAsync)(src, babelConfig);
|
|
26
31
|
return buildResult(src, filename, markoConfig.errorRecovery, babelResult);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
function compileSync(src, filename, config) {
|
|
30
35
|
const markoConfig = loadMarkoConfig(config);
|
|
31
36
|
const babelConfig = loadBabelConfigSync(filename, markoConfig);
|
|
32
|
-
const babelResult =
|
|
37
|
+
const babelResult = (0, _babel.transformSync)(src, babelConfig);
|
|
33
38
|
return buildResult(src, filename, markoConfig.errorRecovery, babelResult);
|
|
34
39
|
}
|
|
35
40
|
|
|
@@ -72,14 +77,14 @@ function loadMarkoConfig(config) {
|
|
|
72
77
|
async function loadBabelConfig(filename, config) {
|
|
73
78
|
const baseBabelConfig = getBaseBabelConfig(filename, config);
|
|
74
79
|
return isTranslatedOutput(config.output) ?
|
|
75
|
-
(await
|
|
80
|
+
(await (0, _babel.loadPartialConfigAsync)(baseBabelConfig)).options :
|
|
76
81
|
baseBabelConfig;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
function loadBabelConfigSync(filename, config) {
|
|
80
85
|
const baseBabelConfig = getBaseBabelConfig(filename, config);
|
|
81
86
|
return isTranslatedOutput(config.output) ?
|
|
82
|
-
|
|
87
|
+
(0, _babel.loadPartialConfig)(baseBabelConfig).options :
|
|
83
88
|
baseBabelConfig;
|
|
84
89
|
}
|
|
85
90
|
|
|
@@ -108,7 +113,10 @@ function getBaseBabelConfig(filename, { babelConfig, ...markoConfig }) {
|
|
|
108
113
|
|
|
109
114
|
if (isTranslated) {
|
|
110
115
|
if (markoConfig.modules === "cjs") {
|
|
111
|
-
baseBabelConfig.plugins.push([
|
|
116
|
+
baseBabelConfig.plugins.push([
|
|
117
|
+
_babel.pluginTransformModulesCommonjs,
|
|
118
|
+
{ loose: true }]
|
|
119
|
+
);
|
|
112
120
|
}
|
|
113
121
|
}
|
|
114
122
|
|
package/dist/taglib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.__esModule = true;exports._loader = exports._finder = void 0;exports.buildLookup = buildLookup;exports.clearCaches = clearCaches;exports.excludePackage = exports.excludeDir = void 0;exports.register = register;exports.resolveOptionalTaglibs = resolveOptionalTaglibs;var _modules = _interopRequireDefault(require("@marko/compiler/modules"));
|
|
2
2
|
var _path = _interopRequireDefault(require("path"));
|
|
3
3
|
|
|
4
4
|
var _tryLoadTranslator = _interopRequireDefault(require("../util/try-load-translator"));
|
|
@@ -12,7 +12,7 @@ var _lookup = _interopRequireDefault(require("./lookup"));
|
|
|
12
12
|
|
|
13
13
|
var _markoHtml = _interopRequireDefault(require("./marko-html.json"));
|
|
14
14
|
var _markoMath = _interopRequireDefault(require("./marko-math.json"));
|
|
15
|
-
var _markoSvg = _interopRequireDefault(require("./marko-svg.json"));const excludeDir = exports.excludeDir = _finder2.default.excludeDir;const excludePackage = exports.excludePackage = _finder2.default.excludePackage;
|
|
15
|
+
var _markoSvg = _interopRequireDefault(require("./marko-svg.json"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}const excludeDir = exports.excludeDir = _finder2.default.excludeDir;const excludePackage = exports.excludePackage = _finder2.default.excludePackage;
|
|
16
16
|
|
|
17
17
|
const registeredTaglibs = [];
|
|
18
18
|
const loadedTranslatorsTaglibs = new Map();
|
package/dist/types.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ export interface Program extends BaseNode {
|
|
|
262
262
|
directives: Array<Directive>;
|
|
263
263
|
sourceType: "script" | "module";
|
|
264
264
|
interpreter: InterpreterDirective | null;
|
|
265
|
-
params: Array<
|
|
265
|
+
params: Array<FunctionParameter> | null;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export interface ObjectExpression extends BaseNode {
|
|
@@ -447,8 +447,8 @@ export interface ClassDeclaration extends BaseNode {
|
|
|
447
447
|
export interface ExportAllDeclaration extends BaseNode {
|
|
448
448
|
type: "ExportAllDeclaration";
|
|
449
449
|
source: StringLiteral;
|
|
450
|
-
assertions: Array<ImportAttribute> | null;
|
|
451
450
|
attributes: Array<ImportAttribute> | null;
|
|
451
|
+
assertions: Array<ImportAttribute> | null;
|
|
452
452
|
exportKind: "type" | "value" | null;
|
|
453
453
|
}
|
|
454
454
|
|
|
@@ -463,8 +463,8 @@ export interface ExportNamedDeclaration extends BaseNode {
|
|
|
463
463
|
declaration: Declaration | null;
|
|
464
464
|
specifiers: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>;
|
|
465
465
|
source: StringLiteral | null;
|
|
466
|
-
assertions: Array<ImportAttribute> | null;
|
|
467
466
|
attributes: Array<ImportAttribute> | null;
|
|
467
|
+
assertions: Array<ImportAttribute> | null;
|
|
468
468
|
exportKind: "type" | "value" | null;
|
|
469
469
|
}
|
|
470
470
|
|
|
@@ -487,8 +487,8 @@ export interface ImportDeclaration extends BaseNode {
|
|
|
487
487
|
type: "ImportDeclaration";
|
|
488
488
|
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
|
|
489
489
|
source: StringLiteral;
|
|
490
|
-
assertions: Array<ImportAttribute> | null;
|
|
491
490
|
attributes: Array<ImportAttribute> | null;
|
|
491
|
+
assertions: Array<ImportAttribute> | null;
|
|
492
492
|
importKind: "type" | "typeof" | "value" | null;
|
|
493
493
|
module: boolean | null;
|
|
494
494
|
phase: "source" | "defer" | null;
|
|
@@ -1758,7 +1758,7 @@ export interface MarkoSpreadAttribute extends BaseNode {
|
|
|
1758
1758
|
export interface MarkoTagBody extends BaseNode {
|
|
1759
1759
|
type: "MarkoTagBody";
|
|
1760
1760
|
body: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>;
|
|
1761
|
-
params: Array<
|
|
1761
|
+
params: Array<FunctionParameter>;
|
|
1762
1762
|
attributeTags: boolean;
|
|
1763
1763
|
typeParameters: TSTypeParameterDeclaration | null;
|
|
1764
1764
|
}
|
|
@@ -1845,9 +1845,9 @@ export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMeth
|
|
|
1845
1845
|
export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
|
|
1846
1846
|
export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSTemplateLiteralType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
|
|
1847
1847
|
export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSTemplateLiteralType | TSLiteralType;
|
|
1848
|
-
export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1849
1848
|
export type Marko = MarkoParseError | MarkoDocumentType | MarkoDeclaration | MarkoCDATA | MarkoComment | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoClass | MarkoAttribute | MarkoSpreadAttribute | MarkoTagBody | MarkoTag;
|
|
1850
1849
|
export type Scope = MarkoTagBody;
|
|
1850
|
+
export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1851
1851
|
|
|
1852
1852
|
export interface Aliases {
|
|
1853
1853
|
Standardized: Standardized;
|
|
@@ -1900,9 +1900,9 @@ export interface Aliases {
|
|
|
1900
1900
|
TSTypeElement: TSTypeElement;
|
|
1901
1901
|
TSType: TSType;
|
|
1902
1902
|
TSBaseType: TSBaseType;
|
|
1903
|
-
ModuleDeclaration: ModuleDeclaration;
|
|
1904
1903
|
Marko: Marko;
|
|
1905
1904
|
Scope: Scope;
|
|
1905
|
+
ModuleDeclaration: ModuleDeclaration;
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
1908
|
export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
|
|
@@ -1962,12 +1962,12 @@ export function arrowFunctionExpression(params: Array<FunctionParameter>, body:
|
|
|
1962
1962
|
export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>): ClassBody;
|
|
1963
1963
|
export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassExpression;
|
|
1964
1964
|
export function classDeclaration(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassDeclaration;
|
|
1965
|
-
export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
|
|
1965
|
+
export function exportAllDeclaration(source: StringLiteral, attributes?: Array<ImportAttribute> | null): ExportAllDeclaration;
|
|
1966
1966
|
export function exportDefaultDeclaration(declaration: TSDeclareFunction | FunctionDeclaration | ClassDeclaration | Expression): ExportDefaultDeclaration;
|
|
1967
|
-
export function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>, source?: StringLiteral | null): ExportNamedDeclaration;
|
|
1967
|
+
export function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>, source?: StringLiteral | null, attributes?: Array<ImportAttribute> | null): ExportNamedDeclaration;
|
|
1968
1968
|
export function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier;
|
|
1969
1969
|
export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
|
|
1970
|
-
export function importDeclaration(specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>, source: StringLiteral): ImportDeclaration;
|
|
1970
|
+
export function importDeclaration(specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>, source: StringLiteral, attributes?: Array<ImportAttribute> | null): ImportDeclaration;
|
|
1971
1971
|
export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
|
|
1972
1972
|
export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
|
|
1973
1973
|
export function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier;
|
|
@@ -2171,7 +2171,7 @@ export function markoScriptlet(body: Array<Statement>, _static?: boolean, target
|
|
|
2171
2171
|
export function markoClass(body: ClassBody): MarkoClass;
|
|
2172
2172
|
export function markoAttribute(name: string, value: Expression, modifier?: string | null, _arguments?: Array<Expression | SpreadElement> | null, _default?: boolean | null, bound?: boolean | null): MarkoAttribute;
|
|
2173
2173
|
export function markoSpreadAttribute(value: Expression): MarkoSpreadAttribute;
|
|
2174
|
-
export function markoTagBody(body?: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>, params?: Array<
|
|
2174
|
+
export function markoTagBody(body?: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>, params?: Array<FunctionParameter>): MarkoTagBody;
|
|
2175
2175
|
export function markoTag(name: Expression, attributes: Array<MarkoAttribute | MarkoSpreadAttribute> | undefined, body: MarkoTagBody, _arguments?: Array<Expression | SpreadElement> | null, _var?: LVal | null, attributeTags?: Array<MarkoTag | MarkoScriptlet | MarkoComment>): MarkoTag;
|
|
2176
2176
|
export function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor;
|
|
2177
2177
|
export function assertAccessor(node: object | null | undefined, opts?: object | null): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.__esModule = true;exports.buildCodeFrameError = buildCodeFrameError;var _babel = require("@marko/compiler/internal/babel");
|
|
2
2
|
var _modules = require("@marko/compiler/modules");
|
|
3
3
|
var _kleur = _interopRequireDefault(require("kleur"));
|
|
4
4
|
var _path = _interopRequireDefault(require("path"));
|
|
5
5
|
|
|
6
|
-
var _stripAnsi = require("./strip-ansi");
|
|
6
|
+
var _stripAnsi = require("./strip-ansi");function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
|
|
7
7
|
const indent = " ";
|
|
8
8
|
|
|
9
9
|
class CompileError extends Error {
|
|
@@ -81,7 +81,7 @@ function buildCodeFrameError(filename, code, loc, label) {
|
|
|
81
81
|
|
|
82
82
|
function buildMessage(code, loc, message) {
|
|
83
83
|
return loc ?
|
|
84
|
-
(0,
|
|
84
|
+
(0, _babel.codeFrameColumns)(
|
|
85
85
|
code,
|
|
86
86
|
{
|
|
87
87
|
start: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.__esModule = true;exports.default = _default;var _modules = _interopRequireDefault(require("@marko/compiler/modules"));
|
|
2
2
|
|
|
3
|
-
var _config = _interopRequireDefault(require("../config"));
|
|
3
|
+
var _config = _interopRequireDefault(require("../config"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
|
|
4
4
|
const cache = {};
|
|
5
5
|
|
|
6
6
|
function _default(requested = _config.default.translator) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
2
|
+
/// <reference path="./modules.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare module "@babel/core" {
|
|
5
|
+
export const File: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { codeFrameColumns } from "@babel/code-frame";
|
|
9
|
+
export {
|
|
10
|
+
File,
|
|
11
|
+
loadPartialConfig,
|
|
12
|
+
loadPartialConfigAsync,
|
|
13
|
+
transformAsync,
|
|
14
|
+
transformSync,
|
|
15
|
+
} from "@babel/core";
|
|
16
|
+
export { default as generator } from "@babel/generator";
|
|
17
|
+
export { parse, parseExpression } from "@babel/parser";
|
|
18
|
+
export { default as pluginSyntaxTypeScript } from "@babel/plugin-syntax-typescript";
|
|
19
|
+
export { default as pluginTransformModulesCommonjs } from "@babel/plugin-transform-modules-commonjs";
|
|
20
|
+
export { default as pluginTransformTypeScript } from "@babel/plugin-transform-typescript";
|
|
21
|
+
export { default as traverse } from "@babel/traverse";
|
|
22
|
+
export * as types from "@babel/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.51",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"default": "./dist/register.js"
|
|
38
38
|
},
|
|
39
39
|
"./modules": "./modules.js",
|
|
40
|
+
"./internal/babel": "./dist/babel.js",
|
|
40
41
|
"./babel-types": "./babel-types.d.ts",
|
|
41
42
|
"./dist/types": "./dist/types.d.ts",
|
|
42
43
|
"./package": "./package.json",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"types": "index.d.ts",
|
|
48
49
|
"files": [
|
|
49
50
|
"dist",
|
|
51
|
+
"internal",
|
|
50
52
|
"config.js",
|
|
51
53
|
"config.d.ts",
|
|
52
54
|
"modules.js",
|
|
@@ -58,24 +60,14 @@
|
|
|
58
60
|
"register.d.ts"
|
|
59
61
|
],
|
|
60
62
|
"scripts": {
|
|
61
|
-
"build": "babel ./src --out-dir ./dist --copy-files --config-file ../../babel.config.js --env-name=production",
|
|
62
|
-
"
|
|
63
|
+
"build": "babel ./src --out-dir ./dist --copy-files --config-file ../../babel.config.js --env-name=production && node -r ~ts scripts/build-babel",
|
|
64
|
+
"build-babel-types": "node -r ~ts scripts/types"
|
|
63
65
|
},
|
|
64
66
|
"dependencies": {
|
|
65
|
-
"@babel/code-frame": "^7.27.1",
|
|
66
|
-
"@babel/core": "^7.28.0",
|
|
67
|
-
"@babel/generator": "^7.28.0",
|
|
68
|
-
"@babel/parser": "^7.28.0",
|
|
69
|
-
"@babel/plugin-syntax-typescript": "^7.27.1",
|
|
70
|
-
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
71
|
-
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
72
|
-
"@babel/runtime": "^7.28.2",
|
|
73
|
-
"@babel/traverse": "^7.28.0",
|
|
74
|
-
"@babel/types": "^7.28.2",
|
|
75
67
|
"@luxass/strip-json-comments": "^1.4.0",
|
|
76
68
|
"complain": "^1.6.1",
|
|
77
69
|
"he": "^1.2.0",
|
|
78
|
-
"htmljs-parser": "^5.7.
|
|
70
|
+
"htmljs-parser": "^5.7.4",
|
|
79
71
|
"jsesc": "^3.1.0",
|
|
80
72
|
"kleur": "^4.1.5",
|
|
81
73
|
"lasso-package-root": "^1.0.1",
|
|
@@ -87,7 +79,7 @@
|
|
|
87
79
|
"source-map-support": "^0.5.21"
|
|
88
80
|
},
|
|
89
81
|
"devDependencies": {
|
|
90
|
-
"marko": "^5.38.
|
|
82
|
+
"marko": "^5.38.21"
|
|
91
83
|
},
|
|
92
84
|
"engines": {
|
|
93
85
|
"node": "18 || 20 || >=22"
|
|
@@ -116,6 +108,7 @@
|
|
|
116
108
|
"types": "./modules.d.ts",
|
|
117
109
|
"default": "./modules.js"
|
|
118
110
|
},
|
|
111
|
+
"./internal/babel": "./internal/babel/index.ts",
|
|
119
112
|
"./babel-types": "./babel-types.d.ts",
|
|
120
113
|
"./dist/types": "./dist/types.d.ts",
|
|
121
114
|
"./package": "./package.json",
|