salesforce / lwc-webpack-plugin

Plugin to use LWC within Webpack
https://lwc.dev
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Using `lwc` v3* packages breaks webpack due to @lwc/synthetic-shadow alias #27

Closed lukethacoder closed 1 year ago

lukethacoder commented 1 year ago

attempting to run webpack with the new LWC v3 package versions (released as part of https://github.com/salesforce/lwc/pull/3600).

this throws an error of:

[webpack-cli] Error: Cannot find module '@lwc/synthetic-shadow/dist/synthetic-shadow.js'

Removing the alias gets webpack working again.