You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/svelte.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,3 +89,13 @@ module.exports = {
89
89
]
90
90
};
91
91
```
92
+
93
+
## Options
94
+
95
+
### `strict`
96
+
97
+
If `true` whenever a missing replacement is found like `{css.doesnotexist}` an error will be throw aborting the file processing. Defaults to `false`.
98
+
99
+
### Shared Options
100
+
101
+
All options are passed to the underlying `Processor` instance, see [Options](https://github.com/tivac/modular-css/blob/master/docs/api.md#options).
Copy file name to clipboardExpand all lines: packages/svelte/README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,4 +129,10 @@ module.exports = {
129
129
130
130
## Options
131
131
132
+
### `strict`
133
+
134
+
If `true` whenever a missing replacement is found like `{css.doesnotexist}` an error will be throw aborting the file processing. Defaults to `false`.
135
+
136
+
### Shared Options
137
+
132
138
All options are passed to the underlying `Processor` instance, see [Options](https://github.com/tivac/modular-css/blob/master/docs/api.md#options).
exports[`/svelte.js should handle invalid references in "<script>"(inline:false,strict:true)1`]=`"modular-css-svelte:Unabletofind\\"css.nuhuh\\"in./invalid.css"`;
exports[`/svelte.js should handle invalid references in "<script>"(inline:true,strict:true)1`]=`"modular-css-svelte:Unabletofind\\"css.nuhuh\\"in<style>"`;
exports[`/svelte.js should handle invalid references in "template"(inline:true,strict:true)1`]=`"modular-css-svelte:Unabletofind\\"css.nope\\"in<style>"`;
0 commit comments