@@ -3440,3 +3440,202 @@ exports[`getDefaultConfiguration returns the default Webpack configuration for t
34403440 " target" : " browserslist:/foo/bar/.browserslistrc" ,
34413441}
34423442` ;
3443+
3444+ exports[` getDefaultConfiguration returns the default Webpack configuration when \` analyze\` is \` true\` 1` ] = `
3445+ {
3446+ " devtool" : false ,
3447+ " entry" : " /foo/bar/src/index.js" ,
3448+ " infrastructureLogging" : {
3449+ " level" : " none" ,
3450+ },
3451+ " mode" : " production" ,
3452+ " module" : {
3453+ " rules" : [
3454+ {
3455+ " exclude" : / node_modules / u ,
3456+ " test" : / \\\\\\.\\(js \\| jsx \\| mjs \\| cjs \\| ts \\| tsx \\)\\$ / u ,
3457+ " use" : {
3458+ " loader" : " /foo/bar/node_modules/swc-loader/index.js" ,
3459+ " options" : {
3460+ " env" : {
3461+ " targets" : " chrome >= 90, firefox >= 91" ,
3462+ },
3463+ " jsc" : {
3464+ " parser" : {
3465+ " syntax" : " typescript" ,
3466+ " tsx" : true ,
3467+ },
3468+ " transform" : {
3469+ " react" : {
3470+ " importSource" : " @metamask/snaps-sdk" ,
3471+ " runtime" : " automatic" ,
3472+ " useBuiltins" : true ,
3473+ },
3474+ },
3475+ },
3476+ " module" : {
3477+ " type" : " es6" ,
3478+ },
3479+ " sourceMaps" : false ,
3480+ " sync" : false ,
3481+ },
3482+ },
3483+ },
3484+ {
3485+ " resolve" : {
3486+ " fullySpecified" : false ,
3487+ },
3488+ " test" : / \\\\\\.m \\? js \\$ / u ,
3489+ },
3490+ {
3491+ " test" : / \\\\\\.svg \\$ / u ,
3492+ " type" : " asset/source" ,
3493+ },
3494+ {
3495+ " generator" : {
3496+ " dataUrl" : [Function ],
3497+ },
3498+ " test" : / \\\\\\.png \\$ / u ,
3499+ " type" : " asset/inline" ,
3500+ },
3501+ {
3502+ " generator" : {
3503+ " dataUrl" : [Function ],
3504+ },
3505+ " test" : / \\\\\\.jpe \\? g \\$ / u ,
3506+ " type" : " asset/inline" ,
3507+ },
3508+ false ,
3509+ ],
3510+ },
3511+ " optimization" : {
3512+ " minimize" : true ,
3513+ " minimizer" : [
3514+ TerserPlugin {
3515+ " options" : {
3516+ " exclude" : undefined ,
3517+ " extractComments" : true ,
3518+ " include" : undefined ,
3519+ " minimizer" : {
3520+ " implementation" : [Function ],
3521+ " options" : {},
3522+ },
3523+ " parallel" : true ,
3524+ " test" : / \\\\\\ . \\ [cm\\ ] \\ ? js\\ (\\\\\\ ? \\ . \\ * \\ )\\ ? \\ $ / i ,
3525+ },
3526+ },
3527+ ],
3528+ " nodeEnv" : false ,
3529+ },
3530+ " output" : {
3531+ " chunkFormat" : " commonjs" ,
3532+ " clean" : false ,
3533+ " filename" : " bundle.js" ,
3534+ " library" : {
3535+ " name" : " module.exports" ,
3536+ " type" : " assign" ,
3537+ },
3538+ " path" : " /foo/bar/dist" ,
3539+ " publicPath" : " /" ,
3540+ },
3541+ " performance" : {
3542+ " hints" : false ,
3543+ },
3544+ " plugins" : [
3545+ BundleAnalyzerPlugin {
3546+ " logger" : Logger {
3547+ " activeLevels" : Set {
3548+ "info",
3549+ "warn",
3550+ "error",
3551+ "silent",
3552+ },
3553+ },
3554+ " opts" : {
3555+ " analyzerHost" : " 127.0.0.1" ,
3556+ " analyzerMode" : " server" ,
3557+ " analyzerPort" : 8888 ,
3558+ " analyzerUrl" : [Function ],
3559+ " defaultSizes" : " parsed" ,
3560+ " excludeAssets" : null ,
3561+ " generateStatsFile" : false ,
3562+ " logLevel" : " info" ,
3563+ " openAnalyzer" : true ,
3564+ " reportFilename" : null ,
3565+ " reportTitle" : [Function ],
3566+ " startAnalyzer" : true ,
3567+ " statsFilename" : " stats.json" ,
3568+ " statsOptions" : null ,
3569+ },
3570+ " server" : null ,
3571+ },
3572+ SnapsWebpackPlugin {
3573+ " options" : {
3574+ " eval" : undefined ,
3575+ " manifestPath" : " /foo/bar/snap.manifest.json" ,
3576+ " writeManifest" : true ,
3577+ },
3578+ },
3579+ SnapsStatsPlugin {
3580+ " options" : {
3581+ " verbose" : false ,
3582+ },
3583+ },
3584+ DefinePlugin {
3585+ " definitions" : {
3586+ " process.env.DEBUG" : " " false " " ,
3587+ " process.env.NODE_DEBUG" : " " false " " ,
3588+ " process.env.NODE_ENV" : " " production " " ,
3589+ },
3590+ },
3591+ ProgressPlugin {
3592+ " dependenciesCount" : 10000 ,
3593+ " handler" : [Function ],
3594+ " modulesCount" : 5000 ,
3595+ " percentBy" : undefined ,
3596+ " profile" : false ,
3597+ " showActiveModules" : false ,
3598+ " showDependencies" : true ,
3599+ " showEntries" : true ,
3600+ " showModules" : true ,
3601+ },
3602+ SnapsBundleWarningsPlugin {
3603+ " options" : {
3604+ " buffer" : true ,
3605+ " builtInResolver" : SnapsBuiltInResolver {
3606+ " options" : {
3607+ " ignore" : [],
3608+ },
3609+ " unresolvedModules" : Set {},
3610+ },
3611+ " builtIns" : true ,
3612+ },
3613+ },
3614+ ],
3615+ " resolve" : {
3616+ " extensions" : [
3617+ " .js" ,
3618+ " .jsx" ,
3619+ " .mjs" ,
3620+ " .cjs" ,
3621+ " .ts" ,
3622+ " .tsx" ,
3623+ ],
3624+ " fallback" : {
3625+ " buffer" : false ,
3626+ " fs" : false ,
3627+ " path" : false ,
3628+ },
3629+ " plugins" : [
3630+ SnapsBuiltInResolver {
3631+ " options" : {
3632+ " ignore" : [],
3633+ },
3634+ " unresolvedModules" : Set {},
3635+ },
3636+ ],
3637+ },
3638+ " stats" : " none" ,
3639+ " target" : " browserslist:/foo/bar/.browserslistrc" ,
3640+ }
3641+ ` ;
0 commit comments