diff --git a/packages/lwc-integration/scripts/build.js b/packages/lwc-integration/scripts/build.js index e89d5fd347..1c66222ce4 100644 --- a/packages/lwc-integration/scripts/build.js +++ b/packages/lwc-integration/scripts/build.js @@ -88,14 +88,17 @@ const baseInputConfig = { plugins: [ entryPointResolverPlugin(), rollupLwcCompilerPlugin({ - mode: 'dev', + mode, exclude: `**/*${testSufix}`, resolveFromPackages: false, mapNamespaceFromPath: false, ignoreFolderName: true, - allowUnnamespaced: true + allowUnnamespaced: true, + compat: { // In order to build faster we manually add compat artifacts later + downgrade: false, + polyfills: false + } }), - isCompat && rollupCompatPlugin({ downgrade: true, polyfills: true }), testCaseComponentResolverPlugin(), ].filter(Boolean) }; diff --git a/packages/lwc-integration/src/shared/templates.js b/packages/lwc-integration/src/shared/templates.js index f850ce2325..62bae19e99 100644 --- a/packages/lwc-integration/src/shared/templates.js +++ b/packages/lwc-integration/src/shared/templates.js @@ -14,7 +14,7 @@ exports.todoApp = function (cmpName) { import { createElement, register } from 'engine'; import Cmp from '${cmpName}'; - registerWireService(register, () => { + registerWireService(register, function () { return { serviceTodo };