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
Juho Heikka 1308b5ed6c
Webpack config fixes (#7423)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-04 09:36:02 +03:00

250 lines
6.1 KiB
Plaintext

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