Skip to content

Commit aba2dbb

Browse files
authored
feat: expose RUNTIME_MODULE_ID constant for plugin authors (#8199)
Expose `RUNTIME_MODULE_ID` so users can use it to filter runtime ID transforms. Also, while fixing the Vite test failures, I found that some test cases need to filter it as well.
1 parent d0c1c36 commit aba2dbb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Runtime helper module ID
3+
*/
4+
export const RUNTIME_MODULE_ID = '\0rolldown/runtime.js';

packages/rolldown/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ import {
114114
} from './utils/define-config';
115115
import { VERSION } from './version';
116116

117+
export { RUNTIME_MODULE_ID } from './constants';
117118
export { build, defineConfig, rolldown, VERSION, watch };
118119
export { BindingMagicString } from './binding.cjs';
119120
export type {

0 commit comments

Comments
 (0)