@lwc/sfdc-lwc-compiler 13.2.7 → 13.2.8-alpha.5
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/__tests__/compile-apex-logging.spec.d.ts +1 -0
- package/dist/__tests__/compile-apex-logging.spec.js +725 -0
- package/dist/__tests__/compile-apex-logging.spec.js.map +1 -0
- package/dist/__tests__/compile-luvio.spec.js +0 -584
- package/dist/__tests__/compile-luvio.spec.js.map +1 -1
- package/dist/__tests__/compile-options.spec.js +31 -0
- package/dist/__tests__/compile-options.spec.js.map +1 -1
- package/dist/__tests__/metadata.spec.js +1 -1
- package/dist/compile.d.ts +2 -0
- package/dist/compile.js +2 -0
- package/dist/compile.js.map +1 -1
- package/dist/compiler/compile.js +10 -3
- package/dist/compiler/compile.js.map +1 -1
- package/dist/compiler/plugins/apexLoggingRollupPlugin.d.ts +54 -0
- package/dist/compiler/plugins/apexLoggingRollupPlugin.js +208 -0
- package/dist/compiler/plugins/apexLoggingRollupPlugin.js.map +1 -0
- package/dist/compiler/plugins/luvioRollupPlugin.d.ts +0 -27
- package/dist/compiler/plugins/luvioRollupPlugin.js +0 -111
- package/dist/compiler/plugins/luvioRollupPlugin.js.map +1 -1
- package/dist/compiler/plugins/plugins.d.ts +2 -1
- package/dist/compiler/plugins/plugins.js +4 -1
- package/dist/compiler/plugins/plugins.js.map +1 -1
- package/dist/metadata/__tests__/references.spec.js +2 -2
- package/package.json +7 -7
|
@@ -36,7 +36,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.luvioApexLoggingTransformPlugin = luvioApexLoggingTransformPlugin;
|
|
40
39
|
exports.luvioGQLTransformPlugin = luvioGQLTransformPlugin;
|
|
41
40
|
exports.transformSync = transformSync;
|
|
42
41
|
exports.default = default_1;
|
|
@@ -66,109 +65,6 @@ function createLdsImportDeclaration(name, namespace, importIdentifiers) {
|
|
|
66
65
|
const importSpecifiers = importIdentifiers.map((identifier) => t.importSpecifier(identifier, identifier));
|
|
67
66
|
return t.importDeclaration(importSpecifiers, t.stringLiteral(`@salesforce/lds/${namespace}__${name}`));
|
|
68
67
|
}
|
|
69
|
-
/**
|
|
70
|
-
This plugin injects the tagName into imperative apex call expressions sourceContext parameter:
|
|
71
|
-
|
|
72
|
-
Example:
|
|
73
|
-
import methodA from '@salesforce/apex/MyClass.methodA';
|
|
74
|
-
export default class Test extends LightningElement {
|
|
75
|
-
connectedCallback() {
|
|
76
|
-
methodA({abc: 123});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
is augmented with:
|
|
81
|
-
|
|
82
|
-
methodA({abc: 123}, {
|
|
83
|
-
sourceContext: {
|
|
84
|
-
tagName: "x/foo/Test"
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
1. Capture the component class name from the ExportDefaultDeclaration
|
|
89
|
-
2. Augment the apex imperative call expressions with the sourceContext object containing the tagName
|
|
90
|
-
3. Do not modify the apex imperative call expressions with 2+ arguments currently- this may be revisited in the future.
|
|
91
|
-
4. Do not modify other function calls or @wire apex declarations.
|
|
92
|
-
*/
|
|
93
|
-
function luvioApexLoggingTransformPlugin() {
|
|
94
|
-
return {
|
|
95
|
-
// keep options in sync with OSS LWC
|
|
96
|
-
// https://github.com/salesforce/lwc/blob/master/packages/@lwc/babel-plugin-component/src/index.js#L30-L35
|
|
97
|
-
manipulateOptions: (_opts, parserOpts) => {
|
|
98
|
-
parserOpts.plugins.push(['decorators', { decoratorsBeforeExport: true }]);
|
|
99
|
-
},
|
|
100
|
-
pre() {
|
|
101
|
-
this.apexCallsToAugment = [];
|
|
102
|
-
this.apexImportedIdentifiers = new Map();
|
|
103
|
-
},
|
|
104
|
-
visitor: {
|
|
105
|
-
ImportDeclaration(path, state) {
|
|
106
|
-
const sourceValue = path.node.source.value;
|
|
107
|
-
// Detect Apex and ApexContinuation imports
|
|
108
|
-
if (sourceValue.startsWith('@salesforce/apex/') ||
|
|
109
|
-
sourceValue.startsWith('@salesforce/apexContinuation/')) {
|
|
110
|
-
for (const specifier of path.node.specifiers) {
|
|
111
|
-
// Detect default import or import with name 'default'
|
|
112
|
-
if (t.isImportDefaultSpecifier(specifier) ||
|
|
113
|
-
(t.isImportSpecifier(specifier) &&
|
|
114
|
-
t.isIdentifier(specifier.imported) &&
|
|
115
|
-
specifier.imported.name === 'default')) {
|
|
116
|
-
state.apexImportedIdentifiers.set(specifier.local.name, specifier.local);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
CallExpression(path, state) {
|
|
122
|
-
const callee = path.node.callee;
|
|
123
|
-
// Identifier call: methodA(), refreshApex(), etc.
|
|
124
|
-
if (t.isIdentifier(callee)) {
|
|
125
|
-
const localName = callee.name;
|
|
126
|
-
const identifier = state.apexImportedIdentifiers.get(localName);
|
|
127
|
-
if (!identifier) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
// Resolve the binding for this identifier in the current scope.
|
|
131
|
-
// If the identifier is shadowed (e.g., as a function parameter),
|
|
132
|
-
// the binding.identifier will not be the same node as the import's identifier.
|
|
133
|
-
const resolvedBinding = path.scope.getBinding(localName);
|
|
134
|
-
if (!resolvedBinding || resolvedBinding.identifier !== identifier) {
|
|
135
|
-
// The call does not reference the Apex import (likely shadowed). Skip.
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
state.apexCallsToAugment.push(path);
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
Program: {
|
|
142
|
-
// Process all references that we collected in the CallExpression visitor
|
|
143
|
-
// we do it here to avoid crawling AST multiple times
|
|
144
|
-
exit: (_path, state) => {
|
|
145
|
-
const calls = state.apexCallsToAugment || [];
|
|
146
|
-
if (calls.length === 0) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
const { name, namespace } = state.opts;
|
|
150
|
-
const tagNameLiteral = t.stringLiteral(`${namespace}/${name}`);
|
|
151
|
-
const secondArg = t.objectExpression([
|
|
152
|
-
t.objectProperty(t.identifier('sourceContext'), t.objectExpression([
|
|
153
|
-
t.objectProperty(t.identifier('tagName'), tagNameLiteral),
|
|
154
|
-
])),
|
|
155
|
-
]);
|
|
156
|
-
for (const callPath of calls) {
|
|
157
|
-
// Skip if already has 2+ args
|
|
158
|
-
if (callPath.node.arguments.length > 1) {
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
161
|
-
// if no arguments are present, we add an undefined argument to maintain consistentcy with a 0 arg call
|
|
162
|
-
if (callPath.node.arguments.length === 0) {
|
|
163
|
-
callPath.node.arguments.push(t.identifier('undefined'));
|
|
164
|
-
}
|
|
165
|
-
callPath.node.arguments.push(secondArg);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
68
|
function luvioGQLTransformPlugin() {
|
|
173
69
|
return {
|
|
174
70
|
// keep options in sync with OSS LWC
|
|
@@ -283,13 +179,6 @@ function transformSync(src, id, { sourcemap, name, namespace }) {
|
|
|
283
179
|
namespace,
|
|
284
180
|
},
|
|
285
181
|
],
|
|
286
|
-
[
|
|
287
|
-
luvioApexLoggingTransformPlugin,
|
|
288
|
-
{
|
|
289
|
-
name,
|
|
290
|
-
namespace,
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
182
|
],
|
|
294
183
|
};
|
|
295
184
|
let result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"luvioRollupPlugin.js","sourceRoot":"","sources":["../../../src/compiler/plugins/luvioRollupPlugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"luvioRollupPlugin.js","sourceRoot":"","sources":["../../../src/compiler/plug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AS;iBACZ;aACJ;SACJ;KACJ,CAAC;IAEF,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACD,MAAM,GAAG,IAAA,oBAAkB,EAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QACnD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClB,OAAO;QACX,CAAC;QAED,OAAO;YACH,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAO,CAAC,IAAI;YACrD,GAAG,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;IACN,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAA,iCAAwB,EAAC,0BAAiB,CAAC,oBAAoB,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IAChG,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,QAAgB;IAClC,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,OAAO,KAAK,KAAK,IAAI,OAAO,KAAK,KAAK,CAAC;AAClD,CAAC;AAED,mBAAyB,OAAyB;IAC9C,OAAO;QACH,IAAI,EAAE,qBAAqB;QAE3B,SAAS,CAAC,IAAY,EAAE,EAAU;YAC9B,mCAAmC;YACnC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;gBACpB,OAAO;YACX,CAAC;YACD,OAAO,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -6,4 +6,5 @@ import rollupPluginImportMetaEnv from './importMetaEnv';
|
|
|
6
6
|
import rollupPluginCSSResolver from './cssResolver';
|
|
7
7
|
declare const rollupPluginTransform: (options: object, compilationCache?: Map<string, any>) => import("rollup").Plugin;
|
|
8
8
|
declare const rollupPluginLuvio: (options: object, compilationCache?: Map<string, any>) => import("rollup").Plugin;
|
|
9
|
-
|
|
9
|
+
declare const rollupPluginApexLogging: (options: object, compilationCache?: Map<string, any>) => import("rollup").Plugin;
|
|
10
|
+
export { rollupPluginReplace, rollupPluginResolve, rollupPluginTransform, rollupPluginMinify, rollupPluginCSSResolver, rollupPluginImportMetaEnv, rollupPluginHmrLex, rollupPluginLuvio, rollupPluginApexLogging, };
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.rollupPluginLuvio = exports.rollupPluginHmrLex = exports.rollupPluginImportMetaEnv = exports.rollupPluginCSSResolver = exports.rollupPluginMinify = exports.rollupPluginTransform = exports.rollupPluginResolve = exports.rollupPluginReplace = void 0;
|
|
6
|
+
exports.rollupPluginApexLogging = exports.rollupPluginLuvio = exports.rollupPluginHmrLex = exports.rollupPluginImportMetaEnv = exports.rollupPluginCSSResolver = exports.rollupPluginMinify = exports.rollupPluginTransform = exports.rollupPluginResolve = exports.rollupPluginReplace = void 0;
|
|
7
7
|
const plugin_replace_1 = __importDefault(require("@rollup/plugin-replace"));
|
|
8
8
|
exports.rollupPluginReplace = plugin_replace_1.default;
|
|
9
9
|
const dev_server_plugin_lex_1 = __importDefault(require("@lwc/dev-server-plugin-lex"));
|
|
@@ -19,8 +19,11 @@ const importMetaEnv_1 = __importDefault(require("./importMetaEnv"));
|
|
|
19
19
|
exports.rollupPluginImportMetaEnv = importMetaEnv_1.default;
|
|
20
20
|
const cssResolver_1 = __importDefault(require("./cssResolver"));
|
|
21
21
|
exports.rollupPluginCSSResolver = cssResolver_1.default;
|
|
22
|
+
const apexLoggingRollupPlugin_1 = __importDefault(require("./apexLoggingRollupPlugin"));
|
|
22
23
|
const rollupPluginTransform = (0, cacheableRollupPlugin_1.default)(transform_1.default);
|
|
23
24
|
exports.rollupPluginTransform = rollupPluginTransform;
|
|
24
25
|
const rollupPluginLuvio = (0, cacheableRollupPlugin_1.default)(luvioRollupPlugin_1.default);
|
|
25
26
|
exports.rollupPluginLuvio = rollupPluginLuvio;
|
|
27
|
+
const rollupPluginApexLogging = (0, cacheableRollupPlugin_1.default)(apexLoggingRollupPlugin_1.default);
|
|
28
|
+
exports.rollupPluginApexLogging = rollupPluginApexLogging;
|
|
26
29
|
//# sourceMappingURL=plugins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/compiler/plugins/plugins.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAyD;
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/compiler/plugins/plugins.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAyD;AAkBrD,8BAlBG,wBAAmB,CAkBH;AAjBvB,uFAA4D;AAwBxD,6BAxBG,+BAAkB,CAwBH;AAtBtB,wDAA4C;AAiBxC,8BAjBG,iBAAmB,CAiBH;AAhBvB,4DAAuC;AACvC,sDAA0C;AAiBtC,6BAjBG,gBAAkB,CAiBH;AAhBtB,oFAA2D;AAC3D,4EAAiD;AACjD,oEAAwD;AAgBpD,oCAhBG,uBAAyB,CAgBH;AAf7B,gEAAoD;AAchD,kCAdG,qBAAuB,CAcH;AAb3B,wFAA6D;AAE7D,MAAM,qBAAqB,GAAG,IAAA,+BAAoB,EAAC,mBAAY,CAAC,CAAC;AAS7D,sDAAqB;AARzB,MAAM,iBAAiB,GAAG,IAAA,+BAAoB,EAAC,2BAAc,CAAC,CAAC;AAc3D,8CAAiB;AAbrB,MAAM,uBAAuB,GAAG,IAAA,+BAAoB,EAAC,iCAAoB,CAAC,CAAC;AAcvE,0DAAuB"}
|
|
@@ -425,7 +425,7 @@ describe('module export', () => {
|
|
|
425
425
|
describe('Complex template expressions', () => {
|
|
426
426
|
it('will ignore references with in an element which contains complex template expression when config is unset', () => {
|
|
427
427
|
const { references } = getFileReferences(`<template>
|
|
428
|
-
<div data-foo={bar()}>
|
|
428
|
+
<div data-foo="{bar()}">
|
|
429
429
|
<x-child></x-child>
|
|
430
430
|
</div>
|
|
431
431
|
</template>`, 'foo.html', BUNDLE_CONFIG);
|
|
@@ -434,7 +434,7 @@ describe('Complex template expressions', () => {
|
|
|
434
434
|
});
|
|
435
435
|
it('will collect references with in an element which contains complex template expression when config is set', () => {
|
|
436
436
|
const { references } = getFileReferences(`<template>
|
|
437
|
-
<div data-foo={bar()}>
|
|
437
|
+
<div data-foo="{bar()}">
|
|
438
438
|
<x-child></x-child>
|
|
439
439
|
</div>
|
|
440
440
|
</template>`, 'foo.html', {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/sfdc-lwc-compiler",
|
|
3
3
|
"description": "LWC compiler for SFDC platform",
|
|
4
|
-
"version": "13.2.
|
|
4
|
+
"version": "13.2.8-alpha.5+5d01e46",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"typings": "dist/main.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"@babel/preset-typescript": "7.27.1",
|
|
27
27
|
"@babel/traverse": "7.27.4",
|
|
28
28
|
"@babel/types": "7.27.6",
|
|
29
|
-
"@komaci/esm-generator": "
|
|
30
|
-
"@lwc/dev-server-plugin-lex": "13.2.
|
|
29
|
+
"@komaci/esm-generator": "260.31.0",
|
|
30
|
+
"@lwc/dev-server-plugin-lex": "13.2.8-alpha.5+5d01e46",
|
|
31
31
|
"@lwc/eslint-plugin-lwc": "3.0.0-beta.2",
|
|
32
32
|
"@lwc/eslint-plugin-lwc-platform": "6.2.0",
|
|
33
|
-
"@lwc/metadata": "13.2.
|
|
34
|
-
"@lwc/sfdc-compiler-utils": "13.2.
|
|
33
|
+
"@lwc/metadata": "13.2.8-alpha.5+5d01e46",
|
|
34
|
+
"@lwc/sfdc-compiler-utils": "13.2.8-alpha.5+5d01e46",
|
|
35
35
|
"@rollup/plugin-babel": "^6.0.4",
|
|
36
36
|
"@rollup/plugin-replace": "^6.0.2",
|
|
37
37
|
"@rollup/wasm-node": "4.10.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/eslint-parser": "^7.27.5",
|
|
57
|
-
"@komaci/types": "
|
|
57
|
+
"@komaci/types": "260.31.0",
|
|
58
58
|
"@types/babel__core": "^7.20.5",
|
|
59
59
|
"@types/common-tags": "^1.8.4",
|
|
60
60
|
"@types/doctrine": "^0.0.9",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"@lwc/errors": ">=8",
|
|
71
71
|
"@lwc/template-compiler": ">=8"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "5d01e46546a7b8f7dd6c55f056b9cc580c3a5a8a"
|
|
74
74
|
}
|