File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/plugins Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const importMetaUrlShim = `/*#__PURE__*/ (function () {
1212// - Inject `importMetaUrl` to the end of the module (can't inject at the beginning because of `"use strict";`).
1313// This is a short-term solution, and we hope to provide built-in polyfills like `node.__filename` on Rspack side.
1414export const pluginCjsImportMetaUrlShim = ( ) : RsbuildPlugin => ( {
15- name : 'rsbuild-plugin-cjs-shim' ,
15+ name : 'rsbuild-plugin-cjs-import-meta-url- shim' ,
1616 setup ( api ) {
1717 api . modifyEnvironmentConfig ( ( config ) => {
1818 config . source . define = {
@@ -29,7 +29,7 @@ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.ur
2929` ;
3030
3131export const pluginEsmRequireShim = ( ) : RsbuildPlugin => ( {
32- name : 'rsbuild-plugin-esm-shim' ,
32+ name : 'rsbuild-plugin-esm-require- shim' ,
3333 setup ( api ) {
3434 api . modifyRspackConfig ( ( config ) => {
3535 config . plugins ??= [ ] ;
You can’t perform that action at this time.
0 commit comments