1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/infrastructure/webpack/src/__snapshots__/get-multi-export-config.test.js.snap
Sebastian Malton 2cf006435d chore: Update snapshot for @k8slens/webpack
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-14 14:42:00 -04:00

156 lines
4.6 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`get-multi-export-config given maximal package.json, when creating configuration works 1`] = `
"[
{
name: './index.ts',
entry: { index: './index.ts' },
target: 'node',
mode: 'production',
performance: { maxEntrypointSize: 100000, hints: 'error' },
resolve: { extensions: [ '.ts', '.tsx', '.js' ] },
plugins: [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
options: {
typescript: {
mode: 'write-dts',
configOverwrite: {
include: [ './index.ts' ],
compilerOptions: {
declaration: true,
declarationDir: '/some-working-directory/dist'
}
}
}
}
}
],
output: {
path: '/some-working-directory/dist',
filename: [Function: filename],
library: { type: 'commonjs2' }
},
externalsPresets: { node: true },
node: { __dirname: true, __filename: true },
module: { rules: [ { test: /\\.ts(x)?$/, loader: 'ts-loader' } ] }
},
{
name: './some-entrypoint/index.ts',
entry: { index: './some-entrypoint/index.ts' },
target: 'node',
mode: 'production',
performance: { maxEntrypointSize: 100000, hints: 'error' },
resolve: { extensions: [ '.ts', '.tsx', '.js' ] },
plugins: [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
options: {
typescript: {
mode: 'write-dts',
configOverwrite: {
include: [ './some-entrypoint/index.ts' ],
compilerOptions: {
declaration: true,
declarationDir: '/some-working-directory/dist/some-entrypoint'
}
}
}
}
}
],
output: {
path: '/some-working-directory/dist/some-entrypoint',
filename: [Function: filename],
library: { type: 'commonjs2' }
},
externalsPresets: { node: true },
node: { __dirname: true, __filename: true },
module: { rules: [ { test: /\\.ts(x)?$/, loader: 'ts-loader' } ] }
},
{
name: './some-other-entrypoint/index.ts',
entry: { index: './some-other-entrypoint/index.ts' },
target: 'node',
mode: 'production',
performance: { maxEntrypointSize: 100000, hints: 'error' },
resolve: { extensions: [ '.ts', '.tsx', '.js' ] },
plugins: [
MakePeerDependenciesExternalPlugin {},
ProtectFromImportingNonDependencies {},
ForkTsCheckerWebpackPlugin {
options: {
typescript: {
mode: 'write-dts',
configOverwrite: {
include: [ './some-other-entrypoint/index.ts' ],
compilerOptions: {
declaration: true,
declarationDir: '/some-working-directory/dist/some-other-entrypoint'
}
}
}
}
},
MiniCssExtractPlugin {
_sortedModulesCache: WeakMap { <items unknown> },
options: {
filename: '[name].css',
ignoreOrder: false,
experimentalUseImportModule: undefined,
runtime: true,
chunkFilename: '[name].css'
},
runtimeOptions: {
insert: undefined,
linkType: 'text/css',
attributes: undefined
}
}
],
output: {
path: '/some-working-directory/dist/some-other-entrypoint',
filename: [Function: filename],
library: { type: 'commonjs2' }
},
externalsPresets: { node: true },
node: { __dirname: true, __filename: true },
module: {
rules: [
{ test: /\\.ts(x)?$/, loader: 'ts-loader' },
{
test: /\\.s?css$/,
use: [
{ some: 'miniCssExtractPluginLoader' },
{
loader: 'css-loader',
options: {
sourceMap: false,
modules: {
auto: /\\.module\\./i,
mode: 'local',
localIdentName: '[name]__[local]--[hash:base64:5]'
}
}
},
{
loader: 'postcss-loader',
options: {
sourceMap: false,
postcssOptions: { plugins: [ 'tailwindcss' ] }
}
},
{ loader: 'sass-loader', options: { sourceMap: false } }
]
},
{ test: /\\.(ttf|eot|woff2?)$/, type: 'asset/resource' },
{ test: /\\.svg$/, type: 'asset/source' },
{ test: /\\.(jpg|png|ico)$/, type: 'asset/resource' }
]
}
}
]"
`;