mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-10-30 22:33:11 +08:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user