1 Star 0 Fork 21

Nancy/ZLMRTCClient.js

forked from xu-bin-bin/ZLMRTCClient.js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
// Rollup plugins
import { babel } from '@rollup/plugin-babel';
import eslint from '@rollup/plugin-eslint';
import replace from '@rollup/plugin-replace';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
const pkg = require('./package.json');
export default {
input: 'src/export.js',
output: [
{
file: 'demo/ZLMRTCClient.js',
format: 'iife',
name: 'ZLMRTCClient',
sourcemap: true // 'inline'
}
],
plugins: [
replace({
exclude: 'node_modules/**',
include:['src/ulity/version.js'],
preventAssignment:true,
ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
values:{
__BUILD_DATE__: () => (new Date()).toString(),
__VERSION__:pkg.version
}
}),
eslint(),
nodeResolve({
browser: true,
}),
commonjs(),
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
(process.env.NODE_ENV === 'production'),
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/happymediaJN/zlmrtcclient.js.git
git@gitee.com:happymediaJN/zlmrtcclient.js.git
happymediaJN
zlmrtcclient.js
ZLMRTCClient.js
dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385