forked from georgeboot/laravel-echo-api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
28 lines (27 loc) · 1.04 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import babel from '@rollup/plugin-babel';
import typescript from 'rollup-plugin-typescript2';
export default {
input: './js-src/Connector.ts',
output: [
{ file: './dist/laravel-echo-api-gateway.js', format: 'esm' },
{ file: './dist/laravel-echo-api-gateway.common.js', format: 'cjs' },
{ file: './dist/laravel-echo-api-gateway.iife.js', format: 'iife', name: 'LaravelEchoApiGateway' },
],
plugins: [
typescript(),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
extensions: ['.ts'],
presets: ['@babel/preset-env'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-transform-object-assign',
],
}),
],
};