Support for LWC outside of Salesforce projects
Would it be possible to extend the LWC (mainly HTML part) support to non-sfdx/sf projects?
See https://lwc.dev/ for details, but key differences:
- No SFDX project, somewhat standard JS/node project layout
- No metadata files
- Modules folder provides some difficulties for IDEA/Webstorm resolution (see index.js file in generic boilerplate)
Comments (5)
-
repo owner -
reporter hey Scott, what I’m asking for is support when there’s no metadata involved (or even Salesforce for that matter) - it's the open source variant
There are some instructions on the page linked in the OP to set up a boilerplate project, but to just browse you can look here: https://github.com/thiakil/lwc-os-slds/tree/working-slds
-
repo owner Ah, I see. I should have inferred that from your first bullet point. Unfortunately I can't see that happening anytime soon as my backlog for Salesforce-specific work is effectively never-ending. I'll keep this on the docket, though, and see if there's an opportunity to take a look at some point.
-
repo owner - removed version
-
repo owner - changed title to Support for LWC outside of Salesforce projects
- Log in to comment
Hi, Xander. LWC does work in non-SFDX projects, though of course they must be stored in metadata format. The only thing that I'm aware of not working is LWC local dev because that requires the CLI-based local development server. Otherwise I've developed quite a few LWC components in traditional/metadata format projects, and I have several customers doing large-scale LWC dev in those types of projects as well.
If you're unable to get this working, can you provide a sample project that reproduces the issues that you're seeing?