const BundleAnalyzerPlugin = require("webpack-bundle-analyzer") .BundleAnalyzerPlugin /** @type {import("snowpack").SnowpackUserConfig } */ module.exports = { mount: { public: "/", src: "/_dist_", }, plugins: [ "@snowpack/plugin-svelte", "@snowpack/plugin-dotenv", "@snowpack/plugin-typescript", [ "@snowpack/plugin-webpack", { sourceMap: false, extendConfig: (config) => { config.plugins.push( new BundleAnalyzerPlugin({ analyzerMode: "static", openAnalyzer: false, }) ) return config }, }, ], ], install: [ /* ... */ ], installOptions: { sourceMap: false, }, devOptions: { /* ... */ }, buildOptions: { sourceMaps: false, clean: true, }, proxy: { /* ... */ }, alias: { /* ... */ }, }