We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10205c7 commit f2c8d6eCopy full SHA for f2c8d6e
docs/docs/javascript/features.md
@@ -226,6 +226,20 @@ let hi : unit -> unit = importMember "./hello.js"
226
// export const hi = hi_1;
227
```
228
229
+#### `importSideEffects`
230
+
231
+`importSideEffects` is used when you wants to import a JavaScript module that has side effects, like a CSS file or a polyfill.
232
233
+```fs
234
+importSideEffects "./style.css"
235
+// Generates:
236
+// import "./style.css";
237
238
+importSideEffects "whatwg-fetch"
239
240
+// import 'whatwg-fetch'
241
+```
242
243
## Emit, when F# is not enough
244
245
Emit is a features offered by Fable, that allows you to write JavaScript code directly in F#.
0 commit comments