Closed mantou132 closed 3 years ago
When using third-party custom elements, if custom-element.json exists, it will be loaded as HTML customData.
custom-element.json
customData
e.g:
import * as Gem from '@mantou/gem' // try load `node_modules/@mantou/gem/custom-element.json`
import '@mantou/gem/elements/link' // try load `node_modules/@mantou/gem/elements/link/custom-element.json` // and `node_modules/@mantou/gem/elements/link-custom-element.json`
This is convenient for us to write custom element libraries in any form, because in the end we only need custom-element.json
When using third-party custom elements, if
custom-element.json
exists, it will be loaded as HTMLcustomData
.e.g:
This is convenient for us to write custom element libraries in any form, because in the end we only need
custom-element.json