You've already forked uniapp-error-monitor
fix: 修复npm publish推送失败的问题
解决以下问题: - 修复package.json中repository URL的拼写错误 - 添加缺失的构建依赖项(@rollup/plugin-babel, @babel/core等) - 修复TypeScript类型定义中的字段名冲突 - 修复JavaScript代码中的import.meta语法错误 - 移除JavaScript文件中不当的类型导出 - 添加缺失的LICENSE文件 - 完善package.json配置(添加browser字段等) 确保项目能够成功构建和发布到npm。 Fixes: npm publish失败问题 Closes: 构建配置优化
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { defineConfig } from 'rollup'
|
||||
import babel from '@rollup/plugin-babel'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
|
||||
const pkg = require('./package.json')
|
||||
|
||||
@@ -13,9 +14,10 @@ const external = [
|
||||
]
|
||||
|
||||
const plugins = [
|
||||
typescript(),
|
||||
babel({
|
||||
babelHelpers: 'bundled',
|
||||
extensions: ['.js', '.ts', '.vue'],
|
||||
extensions: ['.js', '.ts'],
|
||||
exclude: ['node_modules/**'],
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
|
||||
Reference in New Issue
Block a user