File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff 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-
15391521You can also call ` toString` as a static method on ` RspackChain` in order to
15401522modify 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') */
You can’t perform that action at this time.
0 commit comments