-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
128 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"additionalProperties": false, | ||
"properties": { | ||
"componentX": { | ||
"description": "A componentX is the value passed directly to blurhash.", | ||
"type": "number" | ||
}, | ||
"componentY": { | ||
"description": "A componentY is the value passed directly to blurhash.", | ||
"type": "number" | ||
}, | ||
"context": { | ||
"description": "A custom file context.", | ||
"type": "string" | ||
}, | ||
"emitFile": { | ||
"description": "Don't emit the file if false is specified.", | ||
"type": "boolean" | ||
}, | ||
"esModule": { | ||
"description": "If enabled, use the ES modules syntax.", | ||
"type": "boolean" | ||
}, | ||
"name": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"instanceOf": "Function" | ||
} | ||
], | ||
"description": "The filename template for the target file." | ||
}, | ||
"outputPath": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"instanceOf": "Function" | ||
} | ||
], | ||
"description": "A custom output path for the target file." | ||
}, | ||
"publicPath": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"instanceOf": "Function" | ||
} | ||
], | ||
"description": "A custom public path for the target file." | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export type CreatePath = ( | ||
url: string, | ||
resourcePath: string, | ||
context: string | ||
) => string | ||
|
||
export type LoaderOptions = { | ||
componentX?: number | ||
componentY?: number | ||
context?: string | ||
emitFile?: boolean | ||
esModule?: boolean | ||
name?: string | ||
outputPath?: string | CreatePath | ||
publicPath?: string | CreatePath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"lib": ["es2020"], | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"strict": true | ||
"resolveJsonModule": true, | ||
"strict": true, | ||
"target": "es2015" | ||
}, | ||
"exclude": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters