Skip to content

Commit

Permalink
Merge pull request #122 from birkskyum/omitNestedClosingTags2
Browse files Browse the repository at this point in the history
omitNestedClosingTags
  • Loading branch information
ryansolid authored Oct 17, 2023
2 parents 4795746 + 28ff5d5 commit c2df581
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export interface Options {
* A [picomatch](https://github.com/micromatch/picomatch) pattern, or array of patterns, which specifies the files
* the plugin should operate on.
*/
include?: FilterPattern
include?: FilterPattern;
/**
* A [picomatch](https://github.com/micromatch/picomatch) pattern, or array of patterns, which specifies the files
* to be ignored by the plugin.
*/
exclude?: FilterPattern
exclude?: FilterPattern;
/**
* This will inject solid-js/dev in place of solid-js in dev mode. Has no
* effect in prod. If set to `false`, it won't inject it in dev. This is
Expand All @@ -47,6 +47,7 @@ export interface Options {
* @default false
*/
ssr: boolean;

/**
* This will inject HMR runtime in dev mode. Has no effect in prod. If
* set to `false`, it won't inject the runtime in dev.
Expand Down Expand Up @@ -197,6 +198,16 @@ export interface Options {
* @default {}
*/
solid: {


/**
* Removed unnecessary closing tags from template strings. More info here:
* https://github.com/solidjs/solid/blob/main/CHANGELOG.md#smaller-templates
*
* @default false
*/
omitNestedClosingTags: boolean;

/**
* The name of the runtime module to import the methods from.
*
Expand Down Expand Up @@ -280,7 +291,7 @@ function isJestDomInstalled() {
}

export default function solidPlugin(options: Partial<Options> = {}): Plugin {
const filter = createFilter(options.include, options.exclude)
const filter = createFilter(options.include, options.exclude);

let needHmr = false;
let replaceDev = false;
Expand Down

0 comments on commit c2df581

Please sign in to comment.