Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "laravel-echo",
"version": "1.4.2",
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration",
"main": "dist/echo.js",
"main": "dist/echo.common.js",
"module": "dist/echo.js",
"scripts": {
"build": "npm run compile && npm run declarations",
"compile": "./node_modules/.bin/rollup -c",
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import babel from 'rollup-plugin-babel';

export default {
input: './src/echo.ts',
output: [{ file: './dist/echo.js', format: 'esm' }],
output: [
{ file: './dist/echo.js', format: 'esm' },
{ file: './dist/echo.common.js', format: 'cjs' },
],
plugins: [
typescript(),
babel({
Expand Down