diff --git a/README.md b/README.md index 4655da3..c84f48f 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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. @@ -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. @@ -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)