Skip to content

add customElement typings #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export default {
// Emit CSS as "files" for other plugins to process
emitCss: true,

// You can optionally set 'customElement' to 'true' to compile
// your components to custom elements (aka web elements)
customElement: false,

// Extract CSS into a separate file (recommended).
// See note below
css: function (css) {
Expand Down
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ interface Options {
*/
css?: (css: CssWriter) => any;


/**
* Compile Svelte components to custom elements (aka web components).
* @default false
*/
customElement?: boolean;

/**
* let Rollup handle all other warnings normally
*/
Expand Down