Commit 7c95cb9
committed
refactor: convert dev.js to ES module syntax
- Replace CommonJS require() calls with ES module import statements
- Add __dirname and __filename polyfills using fileURLToPath and path.dirname
- Import fileURLToPath from 'url' module for ES module compatibility
- Maintains all original functionality while using modern ES module syntax
- Consistent with prepare.js ES module conversion1 parent 0a6f118 commit 7c95cb9
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments