Skip to content

Commit b06d25d

Browse files
committed
up
1 parent 3629336 commit b06d25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/plugins/shims.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
1414
export 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

3131
export 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 ??= [];

0 commit comments

Comments
 (0)