@lwc/sfdc-lwc-compiler 9.4.0 → 10.1.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.
Files changed (113) hide show
  1. package/README.md +3 -9
  2. package/dist/__tests__/assert-valid-javascript.spec.d.ts +1 -0
  3. package/dist/__tests__/assert-valid-javascript.spec.js +16 -0
  4. package/dist/__tests__/assert-valid-javascript.spec.js.map +1 -0
  5. package/dist/__tests__/compilation-context.spec.d.ts +1 -0
  6. package/dist/__tests__/compilation-context.spec.js +66 -0
  7. package/dist/__tests__/compilation-context.spec.js.map +1 -0
  8. package/dist/__tests__/compile-hmr.spec.d.ts +1 -0
  9. package/dist/__tests__/compile-hmr.spec.js +69 -0
  10. package/dist/__tests__/compile-hmr.spec.js.map +1 -0
  11. package/dist/__tests__/compile-komaci.spec.d.ts +1 -0
  12. package/dist/__tests__/compile-komaci.spec.js +153 -0
  13. package/dist/__tests__/compile-komaci.spec.js.map +1 -0
  14. package/dist/__tests__/compile-luvio.spec.d.ts +1 -0
  15. package/dist/__tests__/compile-luvio.spec.js +757 -0
  16. package/dist/__tests__/compile-luvio.spec.js.map +1 -0
  17. package/dist/__tests__/compile-multi-bundle.spec.d.ts +1 -0
  18. package/dist/__tests__/compile-multi-bundle.spec.js +123 -0
  19. package/dist/__tests__/compile-multi-bundle.spec.js.map +1 -0
  20. package/dist/__tests__/compile-options.spec.d.ts +1 -0
  21. package/dist/__tests__/compile-options.spec.js +350 -0
  22. package/dist/__tests__/compile-options.spec.js.map +1 -0
  23. package/dist/__tests__/compile-typescript.spec.d.ts +1 -0
  24. package/dist/__tests__/compile-typescript.spec.js +175 -0
  25. package/dist/__tests__/compile-typescript.spec.js.map +1 -0
  26. package/dist/__tests__/compile.spec.d.ts +1 -0
  27. package/dist/__tests__/compile.spec.js +1652 -0
  28. package/dist/__tests__/compile.spec.js.map +1 -0
  29. package/dist/__tests__/complex-scenarios.metadata.spec.d.ts +1 -0
  30. package/dist/__tests__/complex-scenarios.metadata.spec.js +162 -0
  31. package/dist/__tests__/complex-scenarios.metadata.spec.js.map +1 -0
  32. package/dist/__tests__/metadata.spec.d.ts +1 -0
  33. package/dist/__tests__/metadata.spec.js +915 -0
  34. package/dist/__tests__/metadata.spec.js.map +1 -0
  35. package/dist/compile.js +1 -1
  36. package/dist/compile.js.map +1 -1
  37. package/dist/compiler/__tests__/api-version.spec.d.ts +1 -0
  38. package/dist/compiler/__tests__/api-version.spec.js +29 -0
  39. package/dist/compiler/__tests__/api-version.spec.js.map +1 -0
  40. package/dist/compiler/__tests__/css-resolver.spec.d.ts +1 -0
  41. package/dist/compiler/__tests__/css-resolver.spec.js +45 -0
  42. package/dist/compiler/__tests__/css-resolver.spec.js.map +1 -0
  43. package/dist/compiler/__tests__/dynamic-imports.spec.d.ts +1 -0
  44. package/dist/compiler/__tests__/dynamic-imports.spec.js +24 -0
  45. package/dist/compiler/__tests__/dynamic-imports.spec.js.map +1 -0
  46. package/dist/compiler/__tests__/env-replacement.spec.d.ts +1 -0
  47. package/dist/compiler/__tests__/env-replacement.spec.js +45 -0
  48. package/dist/compiler/__tests__/env-replacement.spec.js.map +1 -0
  49. package/dist/compiler/__tests__/import-meta.spec.d.ts +1 -0
  50. package/dist/compiler/__tests__/import-meta.spec.js +45 -0
  51. package/dist/compiler/__tests__/import-meta.spec.js.map +1 -0
  52. package/dist/compiler/__tests__/lightning-web-security-transforms.spec.d.ts +1 -0
  53. package/dist/compiler/__tests__/lightning-web-security-transforms.spec.js +69 -0
  54. package/dist/compiler/__tests__/lightning-web-security-transforms.spec.js.map +1 -0
  55. package/dist/compiler/__tests__/locker.spec.d.ts +1 -0
  56. package/dist/compiler/__tests__/locker.spec.js +32 -0
  57. package/dist/compiler/__tests__/locker.spec.js.map +1 -0
  58. package/dist/compiler/__tests__/minify.spec.d.ts +1 -0
  59. package/dist/compiler/__tests__/minify.spec.js +30 -0
  60. package/dist/compiler/__tests__/minify.spec.js.map +1 -0
  61. package/dist/compiler/__tests__/namespace-mapping.spec.d.ts +1 -0
  62. package/dist/compiler/__tests__/namespace-mapping.spec.js +124 -0
  63. package/dist/compiler/__tests__/namespace-mapping.spec.js.map +1 -0
  64. package/dist/compiler/__tests__/output.spec.d.ts +1 -0
  65. package/dist/compiler/__tests__/output.spec.js +238 -0
  66. package/dist/compiler/__tests__/output.spec.js.map +1 -0
  67. package/dist/compiler/__tests__/plugins.spec.d.ts +1 -0
  68. package/dist/compiler/__tests__/plugins.spec.js +123 -0
  69. package/dist/compiler/__tests__/plugins.spec.js.map +1 -0
  70. package/dist/compiler/__tests__/resolve.spec.d.ts +1 -0
  71. package/dist/compiler/__tests__/resolve.spec.js +337 -0
  72. package/dist/compiler/__tests__/resolve.spec.js.map +1 -0
  73. package/dist/compiler/__tests__/stylesheet.spec.d.ts +1 -0
  74. package/dist/compiler/__tests__/stylesheet.spec.js +105 -0
  75. package/dist/compiler/__tests__/stylesheet.spec.js.map +1 -0
  76. package/dist/compiler/__tests__/typescript.spec.d.ts +1 -0
  77. package/dist/compiler/__tests__/typescript.spec.js +165 -0
  78. package/dist/compiler/__tests__/typescript.spec.js.map +1 -0
  79. package/dist/compiler/compile.js +1 -8
  80. package/dist/compiler/compile.js.map +1 -1
  81. package/dist/compiler/config/index.d.ts +0 -2
  82. package/dist/compiler/config/index.js +0 -4
  83. package/dist/compiler/config/index.js.map +1 -1
  84. package/dist/compiler/plugins/__tests__/dev-server-plugin-lex/index.spec.d.ts +1 -0
  85. package/dist/compiler/plugins/__tests__/dev-server-plugin-lex/index.spec.js +85 -0
  86. package/dist/compiler/plugins/__tests__/dev-server-plugin-lex/index.spec.js.map +1 -0
  87. package/dist/compiler/plugins/resolve.js +17 -14
  88. package/dist/compiler/plugins/resolve.js.map +1 -1
  89. package/dist/documentation/__tests__/jsdoc.spec.d.ts +1 -0
  90. package/dist/documentation/__tests__/jsdoc.spec.js +1116 -0
  91. package/dist/documentation/__tests__/jsdoc.spec.js.map +1 -0
  92. package/dist/documentation/__tests__/markdown.spec.d.ts +1 -0
  93. package/dist/documentation/__tests__/markdown.spec.js +474 -0
  94. package/dist/documentation/__tests__/markdown.spec.js.map +1 -0
  95. package/dist/linting/__tests__/index.spec.d.ts +1 -0
  96. package/dist/linting/__tests__/index.spec.js +553 -0
  97. package/dist/linting/__tests__/index.spec.js.map +1 -0
  98. package/dist/metadata/__tests__/collector.spec.d.ts +1 -0
  99. package/dist/metadata/__tests__/collector.spec.js +112 -0
  100. package/dist/metadata/__tests__/collector.spec.js.map +1 -0
  101. package/dist/metadata/__tests__/references.spec.d.ts +1 -0
  102. package/dist/metadata/__tests__/references.spec.js +364 -0
  103. package/dist/metadata/__tests__/references.spec.js.map +1 -0
  104. package/dist/metadata/__tests__/wire-config-references.spec.d.ts +1 -0
  105. package/dist/metadata/__tests__/wire-config-references.spec.js +452 -0
  106. package/dist/metadata/__tests__/wire-config-references.spec.js.map +1 -0
  107. package/dist/shared/__tests__/compilation-context.spec.d.ts +1 -0
  108. package/dist/shared/__tests__/compilation-context.spec.js +63 -0
  109. package/dist/shared/__tests__/compilation-context.spec.js.map +1 -0
  110. package/dist/shared/__tests__/instrumentation.spec.d.ts +1 -0
  111. package/dist/shared/__tests__/instrumentation.spec.js +48 -0
  112. package/dist/shared/__tests__/instrumentation.spec.js.map +1 -0
  113. package/package.json +4 -4
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # LWC Platform Compiler
2
2
 
3
- Platform compiler is essentially a [lwc](https://github.com/salesforce/lwc) compiler wrapper that enables multi-bundle compilation for dev, prod, compat, and prod_compat modes, reference report, class documentation, and linting.
3
+ Platform compiler is essentially a [lwc](https://github.com/salesforce/lwc) compiler wrapper that enables multi-bundle compilation for dev and prod modes, reference report, class documentation, and linting.
4
4
 
5
5
  > This package is used by SFDX to help with development of LWCs in a SFDX project. It is _NOT_ meant to be consumed directly by LWC developers. If you need the LWC Compiler in non-SFDX context, visit https://github.com/salesforce/lwc.
6
6
 
@@ -32,7 +32,6 @@ const compilationReport = await compile({
32
32
 
33
33
  outputConfigs: [
34
34
  {
35
- compat: false,
36
35
  minify: false,
37
36
  env: {
38
37
  NODE_ENV: 'development',
@@ -48,7 +47,6 @@ The compiler configuration object is always normalized to apply necessary defaul
48
47
 
49
48
  ```js
50
49
  {
51
- compat: false,
52
50
  minify: false,
53
51
  env: {
54
52
  NODE_ENV: 'development'
@@ -98,11 +96,9 @@ interface Bundle {
98
96
 
99
97
  /**
100
98
  * Output configuration - used
101
- * to configure bundling format, such as mode, env ( dev, prod, prod_debug, prod_compat )
99
+ * to configure bundling format, such as mode, env ( dev, prod, prod_debug )
102
100
  */
103
101
  interface OutputConfig {
104
- compat?: boolean;
105
-
106
102
  minify?: boolean;
107
103
 
108
104
  /** Optional env, ex: NODE_ENV = 'production' */
@@ -208,11 +204,9 @@ interface BundleResult {
208
204
 
209
205
  /** Expanded config used during compilation - mode, env, etc.
210
206
  * expanded means normalized to include all supported properties
211
- * input ex:
212
- * { compat: false }
213
207
  *
214
208
  * output ex:
215
- * { compat: false, minify: false, env: { NODE_ENV: 'development' } }
209
+ * { minify: false, env: { NODE_ENV: 'development' } }
216
210
  */
217
211
  outputConfig: OutputConfig;
218
212
 
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const assert_valid_javascript_1 = require("../utils/assert-valid-javascript");
4
+ describe('validate javascript syntax', () => {
5
+ test('valid syntax does not throw', async () => {
6
+ (0, assert_valid_javascript_1.assertValidJavaScript)('define("x/foo",["exports"],function(exports){function func(e,n){let{c:x}=e;return x}eval(""),exports.func=func,Object.defineProperty(exports,"__esModule",{value:!0})});\n');
7
+ });
8
+ test('invalid syntax throws an error', async () => {
9
+ expect(() => {
10
+ (0, assert_valid_javascript_1.assertValidJavaScript)(
11
+ // This string is the invalid output SWC previously produced see W-14210298
12
+ 'define("x/foo",["exports"],function(exports){function func(e,n){let{c:n}=e;return n}eval(""),exports.func=func,Object.defineProperty(exports,"__esModule",{value:!0})});\n');
13
+ }).toThrowError(/the name `n` is defined multiple times/);
14
+ });
15
+ });
16
+ //# sourceMappingURL=assert-valid-javascript.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert-valid-javascript.spec.js","sourceRoot":"","sources":["../../src/__tests__/assert-valid-javascript.spec.ts"],"names":[],"mappings":";;AAAA,8EAAyE;AAEzE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,IAAI,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;QAC3C,IAAA,+CAAqB,EACjB,4KAA4K,CAC/K,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,CAAC,GAAG,EAAE;YACR,IAAA,+CAAqB;YACjB,2EAA2E;YAC3E,4KAA4K,CAC/K,CAAC;QACN,CAAC,CAAC,CAAC,YAAY,CAAC,wCAAwC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const errors_1 = require("@lwc/errors");
4
+ const compilation_context_1 = require("../shared/compilation-context");
5
+ function mockDiagnostics() {
6
+ return [
7
+ {
8
+ message: `mocked log`,
9
+ code: 1,
10
+ level: errors_1.DiagnosticLevel.Log,
11
+ },
12
+ ];
13
+ }
14
+ describe('compilation-context unit tests', () => {
15
+ describe('withTiming', () => {
16
+ it('collects the timing and returns the result when a synchronous function is wrapped', async () => {
17
+ const context = new compilation_context_1.CompilationContext();
18
+ const testFn = (x) => x + 1;
19
+ const result = await context.withTiming('testFn', () => testFn(10));
20
+ expect(result).toEqual(11);
21
+ expect(context.timings['testFn']).toBeGreaterThan(0);
22
+ });
23
+ it('collects the timing and returns the result when an async function is wrapped', async () => {
24
+ const context = new compilation_context_1.CompilationContext();
25
+ const testFn = (x) => new Promise((resolve, _) => {
26
+ setTimeout(() => {
27
+ resolve(x + 1);
28
+ }, 0);
29
+ });
30
+ const result = await context.withTiming('testFn', () => testFn(10));
31
+ expect(result).toEqual(11);
32
+ expect(context.timings['testFn']).toBeGreaterThan(0);
33
+ });
34
+ });
35
+ describe('withTimingAndDiagnostic', () => {
36
+ it('collects the timings and diagnostics and returns the result when a synchronous function is wrapped', async () => {
37
+ const context = new compilation_context_1.CompilationContext();
38
+ const testFn = (x) => {
39
+ return {
40
+ result: x + 1,
41
+ diagnostics: mockDiagnostics(),
42
+ };
43
+ };
44
+ const { result } = await context.withTimingAndDiagnostics('testFn', () => testFn(10));
45
+ expect(result).toEqual(11);
46
+ expect(context.timings['testFn']).toBeGreaterThan(0);
47
+ expect(context.diagnostics).toHaveLength(1);
48
+ });
49
+ it('collects the timings and diagnostics and returns the result when an async function is wrapped', async () => {
50
+ const context = new compilation_context_1.CompilationContext();
51
+ const testFn = (x) => new Promise((resolve, _) => {
52
+ setTimeout(() => {
53
+ resolve({
54
+ result: x + 1,
55
+ diagnostics: mockDiagnostics(),
56
+ });
57
+ }, 0);
58
+ });
59
+ const { result } = await context.withTimingAndDiagnostics('testFn', () => testFn(10));
60
+ expect(result).toEqual(11);
61
+ expect(context.timings['testFn']).toBeGreaterThan(0);
62
+ expect(context.diagnostics).toHaveLength(1);
63
+ });
64
+ });
65
+ });
66
+ //# sourceMappingURL=compilation-context.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compilation-context.spec.js","sourceRoot":"","sources":["../../src/__tests__/compilation-context.spec.ts"],"names":[],"mappings":";;AAAA,wCAAkE;AAClE,uEAAmE;AAInE,SAAS,eAAe;IACpB,OAAO;QACH;YACI,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,wBAAe,CAAC,GAAG;SAC7B;KACJ,CAAC;AACN,CAAC;AAED,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EA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,CAAC,CAAC;YAEtF,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC3B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YACrD,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const main_1 = require("../main");
4
+ describe('hot module transformation ', () => {
5
+ test.each([['@salesforce'], ['@locker'], ['']])('not applied to special namespace: %s', async (namespace) => {
6
+ await expect((0, main_1.compile)({
7
+ bundle: {
8
+ namespace,
9
+ name: 'loader',
10
+ type: 'internal',
11
+ files: {
12
+ 'loader.js': "export { load } from 'lwr/loader';",
13
+ },
14
+ options: {
15
+ enableHmr: true,
16
+ },
17
+ },
18
+ })).resolves.toMatchObject({
19
+ success: true,
20
+ results: [
21
+ {
22
+ code: expect.not.stringContaining('lwc.hot.register('),
23
+ },
24
+ ],
25
+ });
26
+ });
27
+ test('applied to module when flag set', async () => {
28
+ await expect((0, main_1.compile)({
29
+ bundle: {
30
+ namespace: 'x',
31
+ name: 'loader',
32
+ type: 'internal',
33
+ files: {
34
+ 'loader.js': "export { load } from 'lwr/loader';",
35
+ },
36
+ options: {
37
+ enableHmr: true,
38
+ },
39
+ },
40
+ })).resolves.toMatchObject({
41
+ success: true,
42
+ results: [
43
+ {
44
+ code: expect.stringContaining('lwc.hot.register('),
45
+ },
46
+ ],
47
+ });
48
+ });
49
+ test('not applied to module when flag not set', async () => {
50
+ await expect((0, main_1.compile)({
51
+ bundle: {
52
+ namespace: 'x',
53
+ name: 'loader',
54
+ type: 'internal',
55
+ files: {
56
+ 'loader.js': "export { load } from 'lwr/loader';",
57
+ },
58
+ },
59
+ })).resolves.toMatchObject({
60
+ success: true,
61
+ results: [
62
+ {
63
+ code: expect.not.stringContaining('lwc.hot.register('),
64
+ },
65
+ ],
66
+ });
67
+ });
68
+ });
69
+ //# sourceMappingURL=compile-hmr.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile-hmr.spec.js","sourceRoot":"","sources":["../../src/__tests__/compile-hmr.spec.ts"],"names":[],"mappings":";;AAAA,kCAAkC;AAElC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAC3C,sCAAsC,EACtC,KAAK,EAAE,SAAiB,EAAE,EAAE;QACxB,MAAM,MAAM,CACR,IAAA,cAAO,EAAC;YACJ,MAAM,EAAE;gBACJ,SAAS;gBACT,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE;oBACH,WAAW,EAAE,oCAAoC;iBACpD;gBACD,OAAO,EAAE;oBACL,SAAS,EAAE,IAAI;iBAClB;aACJ;SACG,CAAC,CACZ,CAAC,QAAQ,CAAC,aAAa,CAAC;YACrB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;iBACzD;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,CACJ,CAAC;IACF,IAAI,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,MAAM,CACR,IAAA,cAAO,EAAC;YACJ,MAAM,EAAE;gBACJ,SAAS,EAAE,GAAG;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE;oBACH,WAAW,EAAE,oCAAoC;iBACpD;gBACD,OAAO,EAAE;oBACL,SAAS,EAAE,IAAI;iBAClB;aACJ;SACG,CAAC,CACZ,CAAC,QAAQ,CAAC,aAAa,CAAC;YACrB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;iBACrD;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,MAAM,CACR,IAAA,cAAO,EAAC;YACJ,MAAM,EAAE;gBACJ,SAAS,EAAE,GAAG;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE;oBACH,WAAW,EAAE,oCAAoC;iBACpD;aACJ;SACG,CAAC,CACZ,CAAC,QAAQ,CAAC,aAAa,CAAC;YACrB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;iBACzD;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const main_1 = require("../main");
4
+ const errors_1 = require("../errors/errors");
5
+ function getCompilerConfig(komaciEnabled = true, luvioEnabled = false, targetModule) {
6
+ const config = {
7
+ bundle: {
8
+ namespace: 'x',
9
+ name: 'foo',
10
+ type: 'platform',
11
+ files: {
12
+ 'foo.js': 'console.log("foo")',
13
+ },
14
+ },
15
+ };
16
+ config.bundle.options = {};
17
+ // enable komaci, unless explicitly disabled
18
+ if (komaciEnabled) {
19
+ config.bundle.options.komaciOptions = {
20
+ enableKomaci: true,
21
+ ...(targetModule && { targetModule }),
22
+ };
23
+ }
24
+ if (luvioEnabled) {
25
+ config.bundle.options.luvioOptions = {
26
+ enableLuvio: true,
27
+ };
28
+ }
29
+ return config;
30
+ }
31
+ describe('komaci module compilation', () => {
32
+ test('komaci disabled by default', async () => {
33
+ const report = await (0, main_1.compile)(getCompilerConfig(false));
34
+ expect(report.success).toEqual(true);
35
+ expect(report.komaciCompilerOutput).toBeUndefined();
36
+ });
37
+ test('komaci enabled on platform module with no targetModule specified', async () => {
38
+ const config = getCompilerConfig();
39
+ const moduleName = `${config.bundle.namespace}/${config.bundle.name}`;
40
+ const report = await (0, main_1.compile)(config);
41
+ expect(report.success).toEqual(true);
42
+ expect(report.komaciCompilerOutput?.success).toEqual(true);
43
+ expect(report.komaciCompilerOutput?.results).toBeDefined();
44
+ expect(report.komaciCompilerOutput?.results.length).toEqual(1);
45
+ expect(report.komaciCompilerOutput?.metadata).toBeDefined();
46
+ expect(report.komaciCompilerOutput?.metadata.dynamicImports[0].moduleName).toEqual(moduleName);
47
+ });
48
+ test('komaci enabled on platform module with targetModule specified', async () => {
49
+ const targetModule = 'c/bar';
50
+ const report = await (0, main_1.compile)(getCompilerConfig(true, false, targetModule));
51
+ expect(report.success).toEqual(true);
52
+ expect(report.komaciCompilerOutput?.success).toEqual(true);
53
+ expect(report.komaciCompilerOutput?.results).toBeDefined();
54
+ expect(report.komaciCompilerOutput?.results.length).toEqual(1);
55
+ expect(report.komaciCompilerOutput?.metadata).toBeDefined();
56
+ expect(report.komaciCompilerOutput?.metadata.dynamicImports[0].moduleName).toEqual(targetModule);
57
+ });
58
+ test('komaci enabled on internal module', async () => {
59
+ const config = getCompilerConfig();
60
+ config.bundle.type = 'internal';
61
+ const report = await (0, main_1.compile)(config);
62
+ expect(report.success).toEqual(true);
63
+ expect(report.komaciCompilerOutput?.success).toEqual(true);
64
+ expect(report.komaciCompilerOutput?.metadata).toBeDefined();
65
+ expect(report.komaciCompilerOutput?.results).toBeDefined();
66
+ expect(report.komaciCompilerOutput?.results.length).toEqual(1);
67
+ });
68
+ test('komaci multiple compiler configs', async () => {
69
+ const config = getCompilerConfig();
70
+ config.compilerConfigs = [
71
+ {
72
+ outputConfig: {
73
+ minify: false,
74
+ sourcemap: false,
75
+ },
76
+ },
77
+ {
78
+ outputConfig: {
79
+ minify: true,
80
+ sourcemap: true,
81
+ },
82
+ },
83
+ ];
84
+ const report = await (0, main_1.compile)(config);
85
+ expect(report.success).toEqual(true);
86
+ expect(report.komaciCompilerOutput?.success).toEqual(true);
87
+ expect(report.komaciCompilerOutput?.metadata).toBeDefined();
88
+ expect(report.komaciCompilerOutput?.results).toBeDefined();
89
+ // should match # of input configs for the original module being compiled
90
+ expect(report.komaciCompilerOutput?.results.length).toEqual(2);
91
+ });
92
+ test('komaci modgen throws an exception', async () => {
93
+ const komaciModGen = require('@komaci/esm-generator');
94
+ const originalModGen = komaciModGen.generateKomaciModule;
95
+ komaciModGen.generateKomaciModule = vi.fn().mockImplementation(() => {
96
+ throw new Error('Error in Komaci module generator');
97
+ });
98
+ let report;
99
+ try {
100
+ report = await (0, main_1.compile)(getCompilerConfig());
101
+ }
102
+ finally {
103
+ komaciModGen.generateKomaciModule = originalModGen;
104
+ }
105
+ expect(report.success).toEqual(true);
106
+ expect(report.komaciCompilerOutput?.success).toEqual(false);
107
+ expect(report.diagnostics.length).toEqual(1);
108
+ expect(report.diagnostics[0].code).toEqual(errors_1.Errors.KOMACI_MODGEN_ERROR.code);
109
+ expect(report.diagnostics[0].level).toEqual(errors_1.Errors.KOMACI_MODGEN_ERROR.level);
110
+ expect(report.komaciCompilerOutput?.metadata).toBeUndefined();
111
+ expect(report.komaciCompilerOutput?.results).toBeUndefined();
112
+ });
113
+ test('komaci modgen invalid source', async () => {
114
+ const komaciModGen = require('@komaci/esm-generator');
115
+ const originalModGen = komaciModGen.generateKomaciModule;
116
+ komaciModGen.generateKomaciModule = vi.fn().mockImplementation(() => {
117
+ // syntax error: unclosed paren
118
+ return '{';
119
+ });
120
+ let report;
121
+ try {
122
+ report = await (0, main_1.compile)(getCompilerConfig());
123
+ }
124
+ finally {
125
+ komaciModGen.generateKomaciModule = originalModGen;
126
+ }
127
+ expect(report.success).toEqual(true);
128
+ expect(report.komaciCompilerOutput?.success).toEqual(false);
129
+ expect(report.diagnostics.length).toEqual(1);
130
+ expect(report.diagnostics[0].code).toEqual(1709); // syntax error code
131
+ expect(report.diagnostics[0].filename).toEqual('komacix__foo.js');
132
+ expect(report.komaciCompilerOutput?.metadata).toBeUndefined();
133
+ expect(report.komaciCompilerOutput?.results).toBeUndefined();
134
+ });
135
+ test('komaci timings are gathered', async () => {
136
+ const config = getCompilerConfig();
137
+ const { timings } = await (0, main_1.compile)(config);
138
+ expect(timings).toEqual(expect.objectContaining({ 'komaci-compile': expect.any(Number) }));
139
+ });
140
+ test('luvio metadata is utilized when present', async () => {
141
+ const komaciModGen = require('@komaci/esm-generator');
142
+ const spy = vi.spyOn(komaciModGen, 'generateKomaciModule');
143
+ const config = getCompilerConfig(true, true); //enable luvio
144
+ const report = await (0, main_1.compile)(config);
145
+ expect(report.success).toEqual(true);
146
+ expect(report.komaciCompilerOutput?.success).toEqual(true);
147
+ expect(report.komaciCompilerOutput?.metadata?.luvioMetadata['komacix__foo.js']).toBeDefined();
148
+ expect(report.metadata?.luvioMetadata['foo.js']).toBeDefined();
149
+ expect(spy).toHaveBeenCalledTimes(1);
150
+ expect(spy.mock.calls[0][0].luvioMetadata.gqlTag).toBeDefined();
151
+ });
152
+ });
153
+ //# sourceMappingURL=compile-komaci.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile-komaci.spec.js","sourceRoot":"","sources":["../../src/__tests__/compile-komaci.spec.ts"],"names":[],"mappings":";;AAAA,kCAAkC;AAClC,6CAA0C;AAG1C,SAAS,iBAAiB,CACtB,gBAAyB,IAAI,EAC7B,eAAwB,KAAK,EAC7B,YAAqB;IAErB,MAAM,MAAM,GAA0B;QAClC,MAAM,EAAE;YACJ,SAAS,EAAE,GAAG;YACd,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE;g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