Skip to content

Commit 91f349d

Browse files
committed
fix
1 parent 89efda3 commit 91f349d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,24 +1518,6 @@ config.toString();
15181518
*/
15191519
```
15201520
1521-
Plugins specified via their path will inline the resolved module path in the
1522-
generated output:
1523-
1524-
```js
1525-
import { createRequire } from 'node:module';
1526-
1527-
const require = createRequire(import.meta.url);
1528-
1529-
config
1530-
.plugin('custom')
1531-
.use(require.resolve('my-plugin'), [{ jQuery: 'jquery' }]);
1532-
1533-
config.toString();
1534-
```
1535-
1536-
The resulting string will use the absolute path returned by
1537-
`require.resolve('my-plugin')` when constructing the plugin.
1538-
15391521
You can also call `toString` as a static method on `RspackChain` in order to
15401522
modify the configuration object prior to stringifying.
15411523
@@ -1557,7 +1539,7 @@ RspackChain.toString({
15571539
});
15581540
```
15591541
1560-
```
1542+
```js
15611543
{
15621544
plugins: [
15631545
/* config.plugin('foo') */

0 commit comments

Comments
 (0)