Skip to content

Commit

Permalink
docs: update github syntax of warning (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 authored Jun 10, 2024
1 parent 97a0ba9 commit 4d78606
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ The imports loader can add the necessary `require('whatever')` calls, so those m

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

> **Warning**
> [!WARNING]
>
> By default loader generate ES module named syntax.
> **Warning**
> [!WARNING]
>
> Be careful, existing imports (`import`/`require`) in the original code and importing new values can cause failure.
Expand Down Expand Up @@ -64,7 +64,7 @@ Then you can inject the `jquery` value into the module by configuring the `impor
The `|` or `%20` (space) allow to separate the `syntax`, `moduleName`, `name` and `alias` of import.
The documentation and syntax examples can be read [here](#syntax).

> **Warning**
> [!WARNING]
>
> `%20` is space in a query string, because you can't use spaces in URLs
Expand Down Expand Up @@ -368,11 +368,11 @@ If type `commonjs`:
- `[multiple Foo FooA Bar]` - generates `const { FooA: Bar } = require("Foo");`.
- `[pure Foo]` - generates `require("Foo");`.

> **Warning**
> [!WARNING]
>
> You need to set `type: "commonjs"` to use `single`, `multiple` and `pure` syntaxes.
> **Warning**
> [!WARNING]
>
> Aliases can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
Expand Down Expand Up @@ -454,7 +454,7 @@ Properties:
- `name` - name of an imported value (**required**)
- `alias` - alias of an imported value (**may be omitted**)

> **Warning**
> [!WARNING]
>
> Alias can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
Expand Down Expand Up @@ -573,7 +573,7 @@ Default: `undefined`

Closes the module code in a function with a given `thisArg` and `args` (`(function () { ... }).call();`).

> **Warning**
> [!WARNING]
>
> Do not use this option if source code contains ES module import(s)
Expand Down

0 comments on commit 4d78606

Please sign in to comment.