@ruijadom/telescope-webpack
v0.1.1
Published
Webpack plugin for Telescope integration
Downloads
14
Maintainers
Readme
@ruijadom/telescope-webpack
Webpack plugin for Telescope integration.
Installation
npm install --save-dev @ruijadom/telescope-webpackUsage
Add the plugin to your webpack.config.js:
const { TelescopeWebpackPlugin } = require('@ruijadom/telescope-webpack');
module.exports = {
// ... other webpack config
plugins: [
new TelescopeWebpackPlugin()
]
};Configuration
Pass options to customize Telescope:
new TelescopeWebpackPlugin({
// Server configuration
port: 3737,
host: 'localhost',
// Enable/disable in development
enabled: true,
// Editor configuration
editor: {
name: 'cursor',
command: 'cursor',
args: ['-g']
}
})What It Does
- Injects Telescope browser runtime into your app
- Starts WebSocket server for browser-editor communication
- Adds custom loader for component transformation
- Preserves source maps for accurate navigation
Requirements
- Webpack 5.0+
- React 16.8+
Documentation
For full documentation, see the main Telescope repository.
License
MIT
