1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

add logic to remove soucemap and merge sourcemap params (#9)

* add logic to remove soucemap and merge sourcemap params

* Update bundle.js

---------

Co-authored-by: Sunny Luo <sunnylqm@gmail.com>
This commit is contained in:
波仔糕
2025-02-09 16:14:45 +08:00
committed by GitHub
parent 467ef0c60d
commit abef760f43
3 changed files with 4 additions and 11 deletions

View File

@@ -2,7 +2,6 @@ import { plugins } from './plugin-config';
interface BundleParams {
sentry: boolean;
minify: boolean;
sourcemap: boolean;
[key: string]: any;
}
@@ -10,7 +9,6 @@ interface BundleParams {
export async function checkPlugins(): Promise<BundleParams> {
const params: BundleParams = {
sentry: false,
minify: true,
sourcemap: false,
};

View File

@@ -3,7 +3,6 @@ import fs from 'fs-extra';
interface PluginConfig {
name: string;
bundleParams?: {
minify?: boolean;
[key: string]: any;
};
detect: () => Promise<boolean>;
@@ -14,7 +13,6 @@ export const plugins: PluginConfig[] = [
name: 'sentry',
bundleParams: {
sentry: true,
minify: false,
sourcemap: true,
},
detect: async () => {