File tree Expand file tree Collapse file tree 4 files changed +403
-10
lines changed Expand file tree Collapse file tree 4 files changed +403
-10
lines changed Original file line number Diff line number Diff line change 1
- ( function ( exports , LaravelEcho ) {
1
+ var vueEcho = ( function ( exports , LaravelEcho ) {
2
2
'use strict' ;
3
3
4
4
function _interopDefaultLegacy ( e ) { return e && typeof e === 'object' && 'default' in e ? e : { 'default' : e } ; }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @phantasweng/vue-echo" ,
3
- "version" : " 0.1.0 " ,
3
+ "version" : " 0.1.1-dev " ,
4
4
"main" : " dist/index.esm.js" ,
5
5
"description" : " Vue Laravel Echo - Simply import Laravel Echo to Vue instance" ,
6
6
"scripts" : {
10
10
"author" : " PhantasWeng" ,
11
11
"license" : " ISC" ,
12
12
"dependencies" : {
13
+ "laravel-echo" : " ^1.10.0" ,
14
+ "pusher-js" : " ^7.0.3"
15
+ },
16
+ "devDependencies" : {
17
+ "@babel/core" : " ^7.14.2" ,
13
18
"@rollup/plugin-babel" : " ^5.3.0" ,
19
+ "@rollup/plugin-node-resolve" : " ^13.0.0" ,
14
20
"@vue/compiler-sfc" : " ^3.0.11" ,
15
- "laravel-echo" : " ^1.10.0" ,
16
- "pusher-js" : " ^7.0.3" ,
17
21
"rollup" : " ^2.47.0" ,
18
22
"rollup-plugin-vue" : " ^6.0.0"
19
23
},
20
- "devDependencies" : {},
21
24
"repository" : {
22
25
"type" : " git" ,
23
26
"url" : " git+https://github.com/PhantasWeng/vue-echo.git"
Original file line number Diff line number Diff line change @@ -11,30 +11,45 @@ export default [
11
11
plugins : [
12
12
vue ( { css : false } ) ,
13
13
babel ( { babelHelpers : 'bundled' } )
14
+ ] ,
15
+ external : [
16
+ 'laravel-echo'
14
17
]
15
18
} ,
16
19
// SSR build.
17
20
{
18
21
input : './src/index.js' ,
19
22
output : {
20
23
format : 'cjs' ,
21
- file : 'dist/index.ssr.js'
24
+ file : 'dist/index.ssr.js' ,
25
+ exports : 'named'
22
26
} ,
23
27
plugins : [
24
28
vue ( { css : false , optimizeSSR : true } ) ,
25
29
babel ( { babelHelpers : 'bundled' } )
30
+ ] ,
31
+ external : [
32
+ 'laravel-echo'
26
33
]
27
34
} ,
28
35
// Browser build.
29
36
{
30
37
input : './src/index.js' ,
31
38
output : {
39
+ name : 'vueEcho' ,
40
+ globals : {
41
+ 'laravel-echo' : 'LaravelEcho'
42
+ } ,
32
43
format : 'iife' ,
33
- file : 'dist/index.js'
44
+ file : 'dist/index.js' ,
45
+ exports : 'named'
34
46
} ,
35
47
plugins : [
36
48
vue ( { css : false , optimizeSSR : true } ) ,
37
49
babel ( { babelHelpers : 'bundled' } )
50
+ ] ,
51
+ external : [
52
+ 'laravel-echo'
38
53
]
39
54
}
40
55
]
You can’t perform that action at this time.
0 commit comments