5 Star 43 Fork 21

xiongguangjie/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'),
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xiongguangjie/zlmrtcclient.js.git
git@gitee.com:xiongguangjie/zlmrtcclient.js.git
xiongguangjie
zlmrtcclient.js
ZLMRTCClient.js
dev

搜索帮助