Skip to content

Commit 44aeae3

Browse files
authored
docs: update github syntax of warning (#156)
1 parent 6822dd0 commit 44aeae3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Useful when a source file does not contain exports or something does not export.
1919

2020
For further hints on compatibility issues, check out [Shimming](https://webpack.js.org/guides/shimming/) of the official docs.
2121

22-
> **Warning**
22+
> [!WARNING]
2323
>
2424
> By default loader generate ES module named syntax.
2525
26-
> **Warning**
26+
> [!WARNING]
2727
>
2828
> Be careful, existing exports (`export`/`module.exports`/`exports`) in the original code and exporting new values can cause a failure.
2929
@@ -52,7 +52,7 @@ pnpm add -D exports-loader
5252
The `|` or `%20` (space) allow to separate the `syntax`, `name` and `alias` of export.
5353
The documentation and syntax examples can be read [here](#syntax).
5454

55-
> **Warning**
55+
> [!WARNING]
5656
>
5757
> `%20` is space in a query string, because you can't use spaces in URLs
5858
@@ -290,11 +290,11 @@ Examples:
290290
- `[multiple Foo FooA]` - generates `module.exports = { 'FooA': Foo };`.
291291
- `[named [name] [name]Alias]` - generates ES module named exports and exports a value equal to the filename under other name., for `single.js` it will be `single` and `singleAlias`, generates `export { single as singleAlias };`.
292292

293-
> **Warning**
293+
> [!WARNING]
294294
>
295295
> You need to set `type: "commonjs"` to use `single` or `multiple` syntaxes.
296296
297-
> **Warning**
297+
> [!WARNING]
298298
>
299299
> Aliases can't be used together with `default` or `single` syntaxes.
300300
@@ -574,15 +574,15 @@ module.exports = { FooA: Foo };
574574

575575
Allow to specify multiple exports. Each item can be a [`string`](https://github.com/webpack-contrib/exports-loader#string) or an [`object`](https://github.com/webpack-contrib/exports-loader#object).
576576

577-
> **Warning**
577+
> [!WARNING]
578578
>
579579
> Not possible to use `single` and `multiple` syntaxes together due to CommonJS format limitations.
580580
581-
> **Warning**
581+
> [!WARNING]
582582
>
583583
> Not possible to use multiple `default` values due to ES module format limitations.
584584
585-
> **Warning**
585+
> [!WARNING]
586586
>
587587
> Not possible to use multiple `single` values due to CommonJS format limitations.
588588

0 commit comments

Comments
 (0)