Posts

Showing posts from February 18, 2019

Can we See the lwc Module?

Image
4 This page in the LWC developer guide talks about a component JS file, in particular: Every UI component must include a JavaScript file with at least this code. import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { } The core module in Lightning Web Components is lwc. The import statement imports LightningElement from the lwc module. import { LightningElement } from 'lwc'; LightningElement is a custom wrapper of the standard HTML element. Presently I'm learning about JS modules and importing/exporting them. I understand that they are individual JS files. So is there a way to see the lwc module referenced in the documentation? If possible, what is in it and what does it look like?