Skip to content

Commit

Permalink
chore: update to lwc v2 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Jun 10, 2021
1 parent 8c197aa commit e2fe2ed
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 1,616 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
"test": "jest"
},
"dependencies": {
"@lwc/compiler": "1.17.6",
"@lwc/engine": "1.17.6",
"@lwc/jest-preset": "10.0.2",
"@lwc/jest-resolver": "10.0.2",
"@lwc/jest-serializer": "10.0.2",
"@lwc/jest-transformer": "10.0.2",
"@lwc/module-resolver": "1.17.6",
"@lwc/synthetic-shadow": "1.17.6",
"@lwc/wire-service": "1.17.6",
"@salesforce/wire-service-jest-util": "~3.0.0",
"@lwc/compiler": "2.2.1",
"@lwc/engine-dom": "2.2.1",
"@lwc/jest-preset": "11.0.1",
"@lwc/jest-resolver": "11.0.1",
"@lwc/jest-serializer": "11.0.1",
"@lwc/jest-transformer": "11.0.1",
"@lwc/module-resolver": "2.2.1",
"@lwc/synthetic-shadow": "2.2.1",
"@lwc/wire-service": "2.2.1",
"@salesforce/wire-service-jest-util": "4.0.0",
"chalk": "~4.1.0",
"fast-glob": "^3.2.5",
"jest": "26.6.3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-lwc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LWC_VERSION=$1
LWC_TEST_VERSION=$2

yarn upgrade @lwc/compiler@$LWC_VERSION
yarn upgrade @lwc/engine@$LWC_VERSION
yarn upgrade @lwc/engine-dom@$LWC_VERSION
yarn upgrade @lwc/module-resolver@$LWC_VERSION
yarn upgrade @lwc/wire-service@$LWC_VERSION
yarn upgrade @lwc/synthetic-shadow@$LWC_VERSION
Expand Down
2 changes: 1 addition & 1 deletion src/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function getModule(modulePath, options) {

module.exports = function (modulePath, options) {
if (modulePath === 'lwc') {
return require.resolve('@lwc/engine');
return require.resolve('@lwc/engine-dom');
}
return getModule(modulePath, options) || lwcResolver.apply(null, arguments);
};

0 comments on commit e2fe2ed

Please sign in to comment.