-
Notifications
You must be signed in to change notification settings - Fork 1
Reactor cleanup for use in eval project #191
Conversation
WalkthroughWalkthroughThe pull request primarily updates import statements across various files in the Changes
Possibly related PRs
Suggested reviewers
Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (18)
Files skipped from review due to trivial changes (12)
Additional comments not posted (13)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe adding a vite.config.ts to handle transpiling to ESM would be a better option, but given that we’re only using Reactor in two places and are close to feature completion, it might be overkill. I’ll leave the decision up to you; either path works for me! 😊
import { defineConfig } from 'vite';
import typescript from '@vitejs/plugin-typescript';
import path from 'path';
export default defineConfig({
plugins: [typescript()],
resolve: {
extensions: ['.ts', '.js'], // Resolve .ts and .js files automatically
alias: {
'@': path.resolve(__dirname, './src'), // Example alias for cleaner imports
},
},
build: {
rollupOptions: {
output: {
entryFileNames: '[name].js', // Ensure output filenames have .js extension
chunkFileNames: '[name]-[hash].js',
assetFileNames: '[name]-[hash].[ext]',
},
},
},
});
I added a ticket to deal with this in the future |
Summary by CodeRabbit
New Features
.js
file extensions, enhancing compatibility with environments that require explicit file references.Bug Fixes
document
object by usingwindow.document
in multiple instances, ensuring consistent context in document manipulation.Documentation
tsconfig.json
to enforce strict type-checking and consistent casing in file names, improving overall code quality and maintainability.