@teambit/react 0.0.881 → 0.0.882
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +2 -2
- package/artifacts/env-template/public/{238.2ddc5a20aad2fef149e6.js → 700.fcb0085dcdf160cc65c9.js} +15 -15
- package/artifacts/env-template/public/assets-manifest.json +16 -16
- package/artifacts/env-template/public/{compositions.c4e18d110cce13606364.js → compositions.d36450c5ae70173e7a70.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.085d128a4f5272ef7319.js → overview.ca1695b4bf4d507d7a28.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.9642cecf0c09b9d93f54.js +1 -0
- package/artifacts/env-template/public/{preview-root.b9ea187989f25bad7bf4.js → preview-root.a829360e0cc95e341dfd.js} +1 -1
- package/artifacts/env-template/public/static/css/700.bd8655a5.css +1 -0
- package/artifacts/env-template/public/static/css/compositions.e163efe5.css +1 -0
- package/artifacts/env-template/public/static/css/{overview.367aeb5b.css → overview.18adf1ee.css} +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +1 -1
- package/{compositions-1666409808293.js → compositions-1666496165706.js} +0 -0
- package/dist/apps/web/compute-results.js +0 -2
- package/dist/apps/web/compute-results.js.map +1 -1
- package/dist/apps/web/index.js +0 -3
- package/dist/apps/web/index.js.map +1 -1
- package/dist/apps/web/plugins/index.js +0 -3
- package/dist/apps/web/plugins/index.js.map +1 -1
- package/dist/apps/web/plugins/prerender.js +0 -14
- package/dist/apps/web/plugins/prerender.js.map +1 -1
- package/dist/apps/web/react.app-type.js +0 -7
- package/dist/apps/web/react.app-type.js.map +1 -1
- package/dist/apps/web/react.application.js +11 -76
- package/dist/apps/web/react.application.js.map +1 -1
- package/dist/apps/web/ssr/ssr-express.js +0 -31
- package/dist/apps/web/ssr/ssr-express.js.map +1 -1
- package/dist/apps/web/webpack/mutators.js +0 -13
- package/dist/apps/web/webpack/mutators.js.map +1 -1
- package/dist/apps/web/webpack/webpack.app.ssr.config.js +0 -11
- package/dist/apps/web/webpack/webpack.app.ssr.config.js.map +1 -1
- package/dist/eslint/eslintrc.js +1 -1
- package/dist/eslint/eslintrc.js.map +1 -1
- package/dist/highlighter-widget.js +0 -16
- package/dist/highlighter-widget.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/jest/index.js +0 -7
- package/dist/jest/index.js.map +1 -1
- package/dist/jest/jest.base.config.js +3 -3
- package/dist/jest/jest.base.config.js.map +1 -1
- package/dist/jest/jest.cjs.config.js +0 -10
- package/dist/jest/jest.cjs.config.js.map +1 -1
- package/dist/jest/jest.config.js +1 -1
- package/dist/jest/jest.config.js.map +1 -1
- package/dist/jest/jest.esm.config.js +0 -10
- package/dist/jest/jest.esm.config.js.map +1 -1
- package/dist/jest/setupTests.js.map +1 -1
- package/dist/jest/transformers/base-transformer-plugins.js +1 -0
- package/dist/jest/transformers/base-transformer-plugins.js.map +1 -1
- package/dist/jest/transformers/base-transformer-presets.js +1 -0
- package/dist/jest/transformers/base-transformer-presets.js.map +1 -1
- package/dist/jest/transformers/base-transformer-process.js +0 -2
- package/dist/jest/transformers/base-transformer-process.js.map +1 -1
- package/dist/jest/transformers/cjs-transformer.js +0 -5
- package/dist/jest/transformers/cjs-transformer.js.map +1 -1
- package/dist/jest/transformers/css-transform.js +1 -2
- package/dist/jest/transformers/css-transform.js.map +1 -1
- package/dist/jest/transformers/esm-transformer.js +1 -5
- package/dist/jest/transformers/esm-transformer.js.map +1 -1
- package/dist/jest/transformers/file-transform.js +2 -6
- package/dist/jest/transformers/file-transform.js.map +1 -1
- package/dist/prettier/prettier.config.js.map +1 -1
- package/dist/react.aspect.js +0 -5
- package/dist/react.aspect.js.map +1 -1
- package/dist/react.composition.js +0 -6
- package/dist/react.composition.js.map +1 -1
- package/dist/react.env.js +34 -143
- package/dist/react.env.js.map +1 -1
- package/dist/react.graphql.js +0 -6
- package/dist/react.graphql.js.map +1 -1
- package/dist/react.main.runtime.js +23 -152
- package/dist/react.main.runtime.js.map +1 -1
- package/dist/react.preview.runtime.js +0 -32
- package/dist/react.preview.runtime.js.map +1 -1
- package/dist/react.templates.js +0 -46
- package/dist/react.templates.js.map +1 -1
- package/dist/react.ui.runtime.js +0 -35
- package/dist/react.ui.runtime.js.map +1 -1
- package/dist/templates/react-app/files/app-plugin.js +0 -1
- package/dist/templates/react-app/files/app-plugin.js.map +1 -1
- package/dist/templates/react-app/files/app-root.js +0 -1
- package/dist/templates/react-app/files/app-root.js.map +1 -1
- package/dist/templates/react-app/files/app.js +0 -1
- package/dist/templates/react-app/files/app.js.map +1 -1
- package/dist/templates/react-app/files/compositions.js +0 -1
- package/dist/templates/react-app/files/compositions.js.map +1 -1
- package/dist/templates/react-app/files/doc.js +0 -1
- package/dist/templates/react-app/files/doc.js.map +1 -1
- package/dist/templates/react-app/files/index.js +0 -1
- package/dist/templates/react-app/files/index.js.map +1 -1
- package/dist/templates/react-app/index.js +0 -19
- package/dist/templates/react-app/index.js.map +1 -1
- package/dist/templates/react-component/files/component.js +0 -2
- package/dist/templates/react-component/files/component.js.map +1 -1
- package/dist/templates/react-component/files/composition.js +0 -2
- package/dist/templates/react-component/files/composition.js.map +1 -1
- package/dist/templates/react-component/files/docs.js +0 -2
- package/dist/templates/react-component/files/docs.js.map +1 -1
- package/dist/templates/react-component/files/index-file.js +0 -2
- package/dist/templates/react-component/files/index-file.js.map +1 -1
- package/dist/templates/react-component/files/test.js +0 -2
- package/dist/templates/react-component/files/test.js.map +1 -1
- package/dist/templates/react-component/index.js +0 -24
- package/dist/templates/react-component/index.js.map +1 -1
- package/dist/templates/react-component-js/files/component.js +0 -2
- package/dist/templates/react-component-js/files/component.js.map +1 -1
- package/dist/templates/react-component-js/files/composition.js +0 -2
- package/dist/templates/react-component-js/files/composition.js.map +1 -1
- package/dist/templates/react-component-js/files/docs.js +0 -2
- package/dist/templates/react-component-js/files/docs.js.map +1 -1
- package/dist/templates/react-component-js/files/test.js +0 -2
- package/dist/templates/react-component-js/files/test.js.map +1 -1
- package/dist/templates/react-component-js/index.js +0 -21
- package/dist/templates/react-component-js/index.js.map +1 -1
- package/dist/templates/react-context/files/composition.js +0 -2
- package/dist/templates/react-context/files/composition.js.map +1 -1
- package/dist/templates/react-context/files/context-provider.js +0 -2
- package/dist/templates/react-context/files/context-provider.js.map +1 -1
- package/dist/templates/react-context/files/context.js +0 -2
- package/dist/templates/react-context/files/context.js.map +1 -1
- package/dist/templates/react-context/files/docs.js +0 -2
- package/dist/templates/react-context/files/docs.js.map +1 -1
- package/dist/templates/react-context/files/index-file.js +0 -2
- package/dist/templates/react-context/files/index-file.js.map +1 -1
- package/dist/templates/react-context/files/test.js +0 -2
- package/dist/templates/react-context/files/test.js.map +1 -1
- package/dist/templates/react-context/index.js +0 -19
- package/dist/templates/react-context/index.js.map +1 -1
- package/dist/templates/react-env/files/aspect.js +0 -1
- package/dist/templates/react-env/files/aspect.js.map +1 -1
- package/dist/templates/react-env/files/doc.js +0 -1
- package/dist/templates/react-env/files/doc.js.map +1 -1
- package/dist/templates/react-env/files/index.js +0 -1
- package/dist/templates/react-env/files/index.js.map +1 -1
- package/dist/templates/react-env/files/jest.config.js +0 -1
- package/dist/templates/react-env/files/jest.config.js.map +1 -1
- package/dist/templates/react-env/files/main.runtime.js +0 -1
- package/dist/templates/react-env/files/main.runtime.js.map +1 -1
- package/dist/templates/react-env/files/preview.runtime.js +0 -1
- package/dist/templates/react-env/files/preview.runtime.js.map +1 -1
- package/dist/templates/react-env/files/typescript/styles.js +0 -1
- package/dist/templates/react-env/files/typescript/styles.js.map +1 -1
- package/dist/templates/react-env/files/typescript/ts-transformer.js +0 -1
- package/dist/templates/react-env/files/typescript/ts-transformer.js.map +1 -1
- package/dist/templates/react-env/files/typescript/typescript.config.js +0 -1
- package/dist/templates/react-env/files/typescript/typescript.config.js.map +1 -1
- package/dist/templates/react-env/files/webpack.config.js +0 -1
- package/dist/templates/react-env/files/webpack.config.js.map +1 -1
- package/dist/templates/react-env/index.js +0 -31
- package/dist/templates/react-env/index.js.map +1 -1
- package/dist/templates/react-hook/files/component.js +0 -2
- package/dist/templates/react-hook/files/component.js.map +1 -1
- package/dist/templates/react-hook/files/composition.js +0 -2
- package/dist/templates/react-hook/files/composition.js.map +1 -1
- package/dist/templates/react-hook/files/docs.js +0 -2
- package/dist/templates/react-hook/files/docs.js.map +1 -1
- package/dist/templates/react-hook/files/index-file.js +0 -2
- package/dist/templates/react-hook/files/index-file.js.map +1 -1
- package/dist/templates/react-hook/files/index-file.spec.js +0 -6
- package/dist/templates/react-hook/files/index-file.spec.js.map +1 -1
- package/dist/templates/react-hook/files/test.js +0 -2
- package/dist/templates/react-hook/files/test.js.map +1 -1
- package/dist/templates/react-hook/index.js +0 -16
- package/dist/templates/react-hook/index.js.map +1 -1
- package/dist/templates/react-workspace/index.js +2 -6
- package/dist/templates/react-workspace/index.js.map +1 -1
- package/dist/templates/react-workspace-analytics/index.js +0 -5
- package/dist/templates/react-workspace-analytics/index.js.map +1 -1
- package/dist/templates/react-workspace-app/index.js +2 -13
- package/dist/templates/react-workspace-app/index.js.map +1 -1
- package/dist/templates/react-workspace-blog/index.js +0 -5
- package/dist/templates/react-workspace-blog/index.js.map +1 -1
- package/dist/templates/react-workspace-data-fetching/index.js +0 -5
- package/dist/templates/react-workspace-data-fetching/index.js.map +1 -1
- package/dist/templates/react-workspace-deprecated/index.js +0 -5
- package/dist/templates/react-workspace-deprecated/index.js.map +1 -1
- package/dist/templates/react-workspace-design-system/index.js +0 -5
- package/dist/templates/react-workspace-design-system/index.js.map +1 -1
- package/dist/templates/react-workspace-lib/index.js +0 -5
- package/dist/templates/react-workspace-lib/index.js.map +1 -1
- package/dist/templates/react-workspace-wiki/index.js +0 -5
- package/dist/templates/react-workspace-wiki/index.js.map +1 -1
- package/dist/templates/workspace-common/constants.js.map +1 -1
- package/dist/templates/workspace-common/files/eslint-config.js.map +1 -1
- package/dist/templates/workspace-common/files/git-ignore.js +0 -1
- package/dist/templates/workspace-common/files/git-ignore.js.map +1 -1
- package/dist/templates/workspace-common/files/launch-json.js +0 -2
- package/dist/templates/workspace-common/files/launch-json.js.map +1 -1
- package/dist/templates/workspace-common/files/prettier-config.js.map +1 -1
- package/dist/templates/workspace-common/files/readme-file.js +0 -1
- package/dist/templates/workspace-common/files/readme-file.js.map +1 -1
- package/dist/templates/workspace-common/files/ts-config.js.map +1 -1
- package/dist/templates/workspace-common/files/types/asset.js.map +1 -1
- package/dist/templates/workspace-common/files/types/style.js.map +1 -1
- package/dist/templates/workspace-common/files/workspace-config.js +0 -14
- package/dist/templates/workspace-common/files/workspace-config.js.map +1 -1
- package/dist/templates/workspace-common/generate-files.js +0 -29
- package/dist/templates/workspace-common/generate-files.js.map +1 -1
- package/dist/templates/workspace-common/index.js +0 -3
- package/dist/templates/workspace-common/index.js.map +1 -1
- package/dist/webpack/html.js +3 -2
- package/dist/webpack/html.js.map +1 -1
- package/dist/webpack/index.js +0 -3
- package/dist/webpack/index.js.map +1 -1
- package/dist/webpack/overlay/formatWebpackMessages.js +26 -37
- package/dist/webpack/overlay/formatWebpackMessages.js.map +1 -1
- package/dist/webpack/overlay/launchEditorEndpoint.js +2 -2
- package/dist/webpack/overlay/launchEditorEndpoint.js.map +1 -1
- package/dist/webpack/overlay/refreshOverlayInterop.js +1 -3
- package/dist/webpack/overlay/refreshOverlayInterop.js.map +1 -1
- package/dist/webpack/overlay/webpackHotDevClient.js +54 -71
- package/dist/webpack/overlay/webpackHotDevClient.js.map +1 -1
- package/dist/webpack/postcss.config.js +6 -3
- package/dist/webpack/postcss.config.js.map +1 -1
- package/dist/webpack/webpack.config.base.js +28 -53
- package/dist/webpack/webpack.config.base.js.map +1 -1
- package/dist/webpack/webpack.config.base.prod.js +10 -14
- package/dist/webpack/webpack.config.base.prod.js.map +1 -1
- package/dist/webpack/webpack.config.component.dev.js +10 -17
- package/dist/webpack/webpack.config.component.dev.js.map +1 -1
- package/dist/webpack/webpack.config.component.prod.js +3 -6
- package/dist/webpack/webpack.config.component.prod.js.map +1 -1
- package/dist/webpack/webpack.config.env.dev.js +5 -5
- package/dist/webpack/webpack.config.env.dev.js.map +1 -1
- package/dist/webpack/webpack.config.env.template.js +0 -1
- package/dist/webpack/webpack.config.env.template.js.map +1 -1
- package/{overview-1666409808293.js → overview-1666496165706.js} +0 -0
- package/package-tar/teambit-react-0.0.882.tgz +0 -0
- package/package.json +25 -25
- package/{preview-1666409808293.js → preview-1666496165706.js} +2 -2
- package/artifacts/env-template/public/peers.df1b33444b47cc9becfc.js +0 -1
- package/artifacts/env-template/public/static/css/238.a0238c25.css +0 -1
- package/artifacts/env-template/public/static/css/compositions.6d8c7702.css +0 -1
- package/package-tar/teambit-react-0.0.881.tgz +0 -0
|
@@ -17,9 +17,10 @@ module.exports = {
|
|
|
17
17
|
testEnvironment: require.resolve('jest-environment-jsdom'),
|
|
18
18
|
transform: {
|
|
19
19
|
'^.+\\.css$': require.resolve('./transformers/css-transform.js'),
|
|
20
|
-
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': require.resolve('./transformers/file-transform.js')
|
|
21
|
-
|
|
20
|
+
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': require.resolve('./transformers/file-transform.js')
|
|
21
|
+
// '^(?!.*\\.(svg|png|jpg|jpeg|gif|webp|woff|ttf|woff2)$)': require.resolve('./file-transform.js'),
|
|
22
22
|
},
|
|
23
|
+
|
|
23
24
|
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx|cjs)$', '^.+\\.module\\.(css|sass|scss)$'],
|
|
24
25
|
modulePaths: [],
|
|
25
26
|
moduleNameMapper: {
|
|
@@ -30,7 +31,6 @@ module.exports = {
|
|
|
30
31
|
moduleFileExtensions: ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'],
|
|
31
32
|
testTimeout: 30000 // @todo remove this once mocha-tester is ready and aspect-api testing are using it.
|
|
32
33
|
// watchPlugins: [require.resolve('jest-watch-typeahead/filename'), require.resolve('jest-watch-typeahead/testname')],
|
|
33
|
-
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
//# sourceMappingURL=jest.base.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["module","exports","setupFiles","require","resolve","setupFilesAfterEnv","testEnvironment","transform","transformIgnorePatterns","modulePaths","moduleNameMapper","moduleFileExtensions","testTimeout"],"sources":["jest.base.config.js"],"sourcesContent":["module.exports = {\n // \"roots\": [\n // \"<rootDir>/src\"\n // ],\n // \"collectCoverageFrom\": [\n // \"src/**/*.{js,jsx,ts,tsx}\",\n // \"!src/**/*.d.ts\"\n // ],\n setupFiles: [require.resolve('react-app-polyfill/jsdom')],\n setupFilesAfterEnv: [require.resolve('./setupTests.js')],\n // \"testMatch\": [\n // \"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}\",\n // \"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}\"\n // ],\n testEnvironment: require.resolve('jest-environment-jsdom'),\n transform: {\n '^.+\\\\.css$': require.resolve('./transformers/css-transform.js'),\n '^(?!.*\\\\.(js|jsx|ts|tsx|css|json)$)': require.resolve('./transformers/file-transform.js'),\n // '^(?!.*\\\\.(svg|png|jpg|jpeg|gif|webp|woff|ttf|woff2)$)': require.resolve('./file-transform.js'),\n },\n transformIgnorePatterns: ['[/\\\\\\\\]node_modules[/\\\\\\\\].+\\\\.(js|jsx|ts|tsx|cjs)$', '^.+\\\\.module\\\\.(css|sass|scss)$'],\n modulePaths: [],\n moduleNameMapper: {\n '\\\\.(css|less|scss|sass)$': require.resolve('identity-obj-proxy'),\n '^react-native$': require.resolve('react-native-web'),\n '^.+\\\\.module\\\\.(css|sass|scss)$': require.resolve('identity-obj-proxy'),\n },\n moduleFileExtensions: ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'],\n testTimeout: 30000, // @todo remove this once mocha-tester is ready and aspect-api testing are using it.\n // watchPlugins: [require.resolve('jest-watch-typeahead/filename'), require.resolve('jest-watch-typeahead/testname')],\n};\n"],"mappings":";;AAAAA,MAAM,CAACC,
|
|
1
|
+
{"version":3,"names":["module","exports","setupFiles","require","resolve","setupFilesAfterEnv","testEnvironment","transform","transformIgnorePatterns","modulePaths","moduleNameMapper","moduleFileExtensions","testTimeout"],"sources":["jest.base.config.js"],"sourcesContent":["module.exports = {\n // \"roots\": [\n // \"<rootDir>/src\"\n // ],\n // \"collectCoverageFrom\": [\n // \"src/**/*.{js,jsx,ts,tsx}\",\n // \"!src/**/*.d.ts\"\n // ],\n setupFiles: [require.resolve('react-app-polyfill/jsdom')],\n setupFilesAfterEnv: [require.resolve('./setupTests.js')],\n // \"testMatch\": [\n // \"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}\",\n // \"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}\"\n // ],\n testEnvironment: require.resolve('jest-environment-jsdom'),\n transform: {\n '^.+\\\\.css$': require.resolve('./transformers/css-transform.js'),\n '^(?!.*\\\\.(js|jsx|ts|tsx|css|json)$)': require.resolve('./transformers/file-transform.js'),\n // '^(?!.*\\\\.(svg|png|jpg|jpeg|gif|webp|woff|ttf|woff2)$)': require.resolve('./file-transform.js'),\n },\n transformIgnorePatterns: ['[/\\\\\\\\]node_modules[/\\\\\\\\].+\\\\.(js|jsx|ts|tsx|cjs)$', '^.+\\\\.module\\\\.(css|sass|scss)$'],\n modulePaths: [],\n moduleNameMapper: {\n '\\\\.(css|less|scss|sass)$': require.resolve('identity-obj-proxy'),\n '^react-native$': require.resolve('react-native-web'),\n '^.+\\\\.module\\\\.(css|sass|scss)$': require.resolve('identity-obj-proxy'),\n },\n moduleFileExtensions: ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'],\n testTimeout: 30000, // @todo remove this once mocha-tester is ready and aspect-api testing are using it.\n // watchPlugins: [require.resolve('jest-watch-typeahead/filename'), require.resolve('jest-watch-typeahead/testname')],\n};\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACAC,UAAU,EAAE,CAACC,OAAO,CAACC,OAAO,CAAC,0BAA0B,CAAC,CAAC;EACzDC,kBAAkB,EAAE,CAACF,OAAO,CAACC,OAAO,CAAC,iBAAiB,CAAC,CAAC;EACxD;EACA;EACA;EACA;EACAE,eAAe,EAAEH,OAAO,CAACC,OAAO,CAAC,wBAAwB,CAAC;EAC1DG,SAAS,EAAE;IACT,YAAY,EAAEJ,OAAO,CAACC,OAAO,CAAC,iCAAiC,CAAC;IAChE,qCAAqC,EAAED,OAAO,CAACC,OAAO,CAAC,kCAAkC;IACzF;EACF,CAAC;;EACDI,uBAAuB,EAAE,CAAC,qDAAqD,EAAE,iCAAiC,CAAC;EACnHC,WAAW,EAAE,EAAE;EACfC,gBAAgB,EAAE;IAChB,0BAA0B,EAAEP,OAAO,CAACC,OAAO,CAAC,oBAAoB,CAAC;IACjE,gBAAgB,EAAED,OAAO,CAACC,OAAO,CAAC,kBAAkB,CAAC;IACrD,iCAAiC,EAAED,OAAO,CAACC,OAAO,CAAC,oBAAoB;EACzE,CAAC;EACDO,oBAAoB,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;EAC1GC,WAAW,EAAE,KAAK,CAAE;EACpB;AACF,CAAC"}
|
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
function _defineProperty2() {
|
|
6
5
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
|
-
|
|
8
6
|
_defineProperty2 = function () {
|
|
9
7
|
return data;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
return data;
|
|
13
10
|
}
|
|
14
|
-
|
|
15
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
|
|
17
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
|
|
19
13
|
const baseConfig = require('./jest.base.config');
|
|
20
|
-
|
|
21
14
|
const cjsTransformer = require.resolve('./transformers/cjs-transformer.js');
|
|
22
|
-
|
|
23
15
|
const cjsTransform = _objectSpread(_objectSpread({}, baseConfig.transform), {}, {
|
|
24
16
|
'^.+\\.(js|jsx|ts|tsx|cjs)$': cjsTransformer
|
|
25
17
|
});
|
|
26
|
-
|
|
27
18
|
const cjsConfig = _objectSpread(_objectSpread({}, baseConfig), {}, {
|
|
28
19
|
transform: cjsTransform
|
|
29
20
|
});
|
|
30
|
-
|
|
31
21
|
module.exports = cjsConfig;
|
|
32
22
|
|
|
33
23
|
//# sourceMappingURL=jest.cjs.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["baseConfig","require","cjsTransformer","resolve","cjsTransform","transform","cjsConfig","module","exports"],"sources":["jest.cjs.config.js"],"sourcesContent":["const baseConfig = require('./jest.base.config');\n\nconst cjsTransformer = require.resolve('./transformers/cjs-transformer.js');\n\nconst cjsTransform = { ...baseConfig.transform, '^.+\\\\.(js|jsx|ts|tsx|cjs)$': cjsTransformer };\nconst cjsConfig = { ...baseConfig, transform: cjsTransform };\n\nmodule.exports = cjsConfig;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["baseConfig","require","cjsTransformer","resolve","cjsTransform","transform","cjsConfig","module","exports"],"sources":["jest.cjs.config.js"],"sourcesContent":["const baseConfig = require('./jest.base.config');\n\nconst cjsTransformer = require.resolve('./transformers/cjs-transformer.js');\n\nconst cjsTransform = { ...baseConfig.transform, '^.+\\\\.(js|jsx|ts|tsx|cjs)$': cjsTransformer };\nconst cjsConfig = { ...baseConfig, transform: cjsTransform };\n\nmodule.exports = cjsConfig;\n"],"mappings":";;;;;;;;;;;;AAAA,MAAMA,UAAU,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AAEhD,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAAC,mCAAmC,CAAC;AAE3E,MAAMC,YAAY,mCAAQJ,UAAU,CAACK,SAAS;EAAE,4BAA4B,EAAEH;AAAc,EAAE;AAC9F,MAAMI,SAAS,mCAAQN,UAAU;EAAEK,SAAS,EAAED;AAAY,EAAE;AAE5DG,MAAM,CAACC,OAAO,GAAGF,SAAS"}
|
package/dist/jest/jest.config.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// DEPRECATED
|
|
4
4
|
// This file is here for backward compatibility. not breaking users who used to import this file directly.
|
|
5
5
|
// Please use the specific config file (jest.cjs.config / jest.esm.config) instead
|
|
6
|
-
const cjsConfig = require('./jest.cjs.config');
|
|
7
6
|
|
|
7
|
+
const cjsConfig = require('./jest.cjs.config');
|
|
8
8
|
module.exports = cjsConfig;
|
|
9
9
|
|
|
10
10
|
//# sourceMappingURL=jest.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cjsConfig","require","module","exports"],"sources":["jest.config.js"],"sourcesContent":["// DEPRECATED\n// This file is here for backward compatibility. not breaking users who used to import this file directly.\n// Please use the specific config file (jest.cjs.config / jest.esm.config) instead\n\nconst cjsConfig = require('./jest.cjs.config');\n\nmodule.exports = cjsConfig;\n"],"mappings":";;AAAA;AACA;AACA
|
|
1
|
+
{"version":3,"names":["cjsConfig","require","module","exports"],"sources":["jest.config.js"],"sourcesContent":["// DEPRECATED\n// This file is here for backward compatibility. not breaking users who used to import this file directly.\n// Please use the specific config file (jest.cjs.config / jest.esm.config) instead\n\nconst cjsConfig = require('./jest.cjs.config');\n\nmodule.exports = cjsConfig;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,MAAMA,SAAS,GAAGC,OAAO,CAAC,mBAAmB,CAAC;AAE9CC,MAAM,CAACC,OAAO,GAAGH,SAAS"}
|
|
@@ -1,34 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
function _defineProperty2() {
|
|
6
5
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
|
-
|
|
8
6
|
_defineProperty2 = function () {
|
|
9
7
|
return data;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
return data;
|
|
13
10
|
}
|
|
14
|
-
|
|
15
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
|
|
17
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
|
|
19
13
|
const baseConfig = require('./jest.base.config');
|
|
20
|
-
|
|
21
14
|
const esmTransformer = require.resolve('./transformers/esm-transformer.js');
|
|
22
|
-
|
|
23
15
|
const esmTransform = _objectSpread(_objectSpread({}, baseConfig.transform), {}, {
|
|
24
16
|
'^.+\\.(js|jsx|ts|tsx)$': esmTransformer
|
|
25
17
|
});
|
|
26
|
-
|
|
27
18
|
const esmConfig = _objectSpread(_objectSpread({}, baseConfig), {}, {
|
|
28
19
|
extensionsToTreatAsEsm: ['.ts', '.tsx', '.jsx'],
|
|
29
20
|
transform: esmTransform
|
|
30
21
|
});
|
|
31
|
-
|
|
32
22
|
module.exports = esmConfig;
|
|
33
23
|
|
|
34
24
|
//# sourceMappingURL=jest.esm.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["baseConfig","require","esmTransformer","resolve","esmTransform","transform","esmConfig","extensionsToTreatAsEsm","module","exports"],"sources":["jest.esm.config.js"],"sourcesContent":["const baseConfig = require('./jest.base.config');\n\nconst esmTransformer = require.resolve('./transformers/esm-transformer.js');\nconst esmTransform = { ...baseConfig.transform, '^.+\\\\.(js|jsx|ts|tsx)$': esmTransformer };\nconst esmConfig = { ...baseConfig, extensionsToTreatAsEsm: ['.ts', '.tsx', '.jsx'], transform: esmTransform };\n\nmodule.exports = esmConfig;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["baseConfig","require","esmTransformer","resolve","esmTransform","transform","esmConfig","extensionsToTreatAsEsm","module","exports"],"sources":["jest.esm.config.js"],"sourcesContent":["const baseConfig = require('./jest.base.config');\n\nconst esmTransformer = require.resolve('./transformers/esm-transformer.js');\nconst esmTransform = { ...baseConfig.transform, '^.+\\\\.(js|jsx|ts|tsx)$': esmTransformer };\nconst esmConfig = { ...baseConfig, extensionsToTreatAsEsm: ['.ts', '.tsx', '.jsx'], transform: esmTransform };\n\nmodule.exports = esmConfig;\n"],"mappings":";;;;;;;;;;;;AAAA,MAAMA,UAAU,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AAEhD,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAAC,mCAAmC,CAAC;AAC3E,MAAMC,YAAY,mCAAQJ,UAAU,CAACK,SAAS;EAAE,wBAAwB,EAAEH;AAAc,EAAE;AAC1F,MAAMI,SAAS,mCAAQN,UAAU;EAAEO,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;EAAEF,SAAS,EAAED;AAAY,EAAE;AAE7GI,MAAM,CAACC,OAAO,GAAGH,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require"],"sources":["setupTests.js"],"sourcesContent":["// add babel-polyfill.\n// require('babel-polyfill');\n// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nrequire('@testing-library/jest-dom/extend-expect');\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACAA,OAAO,CAAC,
|
|
1
|
+
{"version":3,"names":["require"],"sources":["setupTests.js"],"sourcesContent":["// add babel-polyfill.\n// require('babel-polyfill');\n// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nrequire('@testing-library/jest-dom/extend-expect');\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACAA,OAAO,CAAC,yCAAyC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/* eslint-disable global-require */
|
|
4
|
+
|
|
4
5
|
const basePlugins = [[require('babel-plugin-transform-typescript-metadata')], [require('@babel/plugin-proposal-decorators'), {
|
|
5
6
|
legacy: true
|
|
6
7
|
}], [require('@babel/plugin-transform-runtime')], [require('@babel/plugin-proposal-object-rest-spread')], [require('@babel/plugin-proposal-class-properties')]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["basePlugins","require","legacy","module","exports"],"sources":["base-transformer-plugins.js"],"sourcesContent":["/* eslint-disable global-require */\n\nconst basePlugins = [\n [require('babel-plugin-transform-typescript-metadata')],\n [require('@babel/plugin-proposal-decorators'), { legacy: true }],\n [require('@babel/plugin-transform-runtime')],\n [require('@babel/plugin-proposal-object-rest-spread')],\n [require('@babel/plugin-proposal-class-properties')],\n];\n\nmodule.exports = {\n basePlugins,\n};\n"],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"names":["basePlugins","require","legacy","module","exports"],"sources":["base-transformer-plugins.js"],"sourcesContent":["/* eslint-disable global-require */\n\nconst basePlugins = [\n [require('babel-plugin-transform-typescript-metadata')],\n [require('@babel/plugin-proposal-decorators'), { legacy: true }],\n [require('@babel/plugin-transform-runtime')],\n [require('@babel/plugin-proposal-object-rest-spread')],\n [require('@babel/plugin-proposal-class-properties')],\n];\n\nmodule.exports = {\n basePlugins,\n};\n"],"mappings":";;AAAA;;AAEA,MAAMA,WAAW,GAAG,CAClB,CAACC,OAAO,CAAC,4CAA4C,CAAC,CAAC,EACvD,CAACA,OAAO,CAAC,mCAAmC,CAAC,EAAE;EAAEC,MAAM,EAAE;AAAK,CAAC,CAAC,EAChE,CAACD,OAAO,CAAC,iCAAiC,CAAC,CAAC,EAC5C,CAACA,OAAO,CAAC,2CAA2C,CAAC,CAAC,EACtD,CAACA,OAAO,CAAC,yCAAyC,CAAC,CAAC,CACrD;AAEDE,MAAM,CAACC,OAAO,GAAG;EACfJ;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["basePresets","require","runtime","module","exports"],"sources":["base-transformer-presets.js"],"sourcesContent":["/* eslint-disable global-require */\n\nconst basePresets = [\n [require('@babel/preset-react'), { runtime: 'automatic' }],\n require('@babel/preset-typescript'),\n require('babel-preset-jest'),\n];\n\nmodule.exports = {\n basePresets,\n};\n"],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"names":["basePresets","require","runtime","module","exports"],"sources":["base-transformer-presets.js"],"sourcesContent":["/* eslint-disable global-require */\n\nconst basePresets = [\n [require('@babel/preset-react'), { runtime: 'automatic' }],\n require('@babel/preset-typescript'),\n require('babel-preset-jest'),\n];\n\nmodule.exports = {\n basePresets,\n};\n"],"mappings":";;AAAA;;AAEA,MAAMA,WAAW,GAAG,CAClB,CAACC,OAAO,CAAC,qBAAqB,CAAC,EAAE;EAAEC,OAAO,EAAE;AAAY,CAAC,CAAC,EAC1DD,OAAO,CAAC,0BAA0B,CAAC,EACnCA,OAAO,CAAC,mBAAmB,CAAC,CAC7B;AAEDE,MAAM,CAACC,OAAO,GAAG;EACfJ;AACF,CAAC"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const {
|
|
4
4
|
transform
|
|
5
5
|
} = require('@babel/core');
|
|
6
|
-
|
|
7
6
|
const generateProcessFunc = (presets, plugins) => {
|
|
8
7
|
return (src, filename) => {
|
|
9
8
|
const result = transform(src, {
|
|
@@ -17,7 +16,6 @@ const generateProcessFunc = (presets, plugins) => {
|
|
|
17
16
|
return result ? result.code : src;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
|
|
21
19
|
module.exports = {
|
|
22
20
|
generateProcessFunc
|
|
23
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["transform","require","generateProcessFunc","presets","plugins","src","filename","result","sourceMap","babelrc","configFile","code","module","exports"],"sources":["base-transformer-process.js"],"sourcesContent":["const { transform } = require('@babel/core');\n\nconst generateProcessFunc = (presets, plugins) => {\n return (src, filename) => {\n const result = transform(src, {\n sourceMap: 'inline',\n filename,\n presets,\n plugins,\n babelrc: false,\n configFile: false,\n });\n\n return result ? result.code : src;\n };\n};\n\nmodule.exports = {\n generateProcessFunc,\n};\n"],"mappings":";;AAAA,MAAM;EAAEA;
|
|
1
|
+
{"version":3,"names":["transform","require","generateProcessFunc","presets","plugins","src","filename","result","sourceMap","babelrc","configFile","code","module","exports"],"sources":["base-transformer-process.js"],"sourcesContent":["const { transform } = require('@babel/core');\n\nconst generateProcessFunc = (presets, plugins) => {\n return (src, filename) => {\n const result = transform(src, {\n sourceMap: 'inline',\n filename,\n presets,\n plugins,\n babelrc: false,\n configFile: false,\n });\n\n return result ? result.code : src;\n };\n};\n\nmodule.exports = {\n generateProcessFunc,\n};\n"],"mappings":";;AAAA,MAAM;EAAEA;AAAU,CAAC,GAAGC,OAAO,CAAC,aAAa,CAAC;AAE5C,MAAMC,mBAAmB,GAAG,CAACC,OAAO,EAAEC,OAAO,KAAK;EAChD,OAAO,CAACC,GAAG,EAAEC,QAAQ,KAAK;IACxB,MAAMC,MAAM,GAAGP,SAAS,CAACK,GAAG,EAAE;MAC5BG,SAAS,EAAE,QAAQ;MACnBF,QAAQ;MACRH,OAAO;MACPC,OAAO;MACPK,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE;IACd,CAAC,CAAC;IAEF,OAAOH,MAAM,GAAGA,MAAM,CAACI,IAAI,GAAGN,GAAG;EACnC,CAAC;AACH,CAAC;AAEDO,MAAM,CAACC,OAAO,GAAG;EACfX;AACF,CAAC"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
4
|
/* eslint-disable import/order */
|
|
6
|
-
|
|
7
5
|
/* eslint-disable global-require */
|
|
8
6
|
const {
|
|
9
7
|
generateProcessFunc
|
|
10
8
|
} = require('./base-transformer-process');
|
|
11
|
-
|
|
12
9
|
const {
|
|
13
10
|
basePlugins
|
|
14
11
|
} = require('./base-transformer-plugins');
|
|
15
|
-
|
|
16
12
|
const {
|
|
17
13
|
basePresets
|
|
18
14
|
} = require('./base-transformer-presets');
|
|
19
|
-
|
|
20
15
|
const presets = [...basePresets, [require('@babel/preset-env'), {
|
|
21
16
|
targets: {
|
|
22
17
|
node: 12
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["generateProcessFunc","require","basePlugins","basePresets","presets","targets","node","useBuiltIns","corejs","plugins","module","exports","process"],"sources":["cjs-transformer.js"],"sourcesContent":["/* eslint-disable import/order */\n/* eslint-disable global-require */\nconst { generateProcessFunc } = require('./base-transformer-process');\nconst { basePlugins } = require('./base-transformer-plugins');\nconst { basePresets } = require('./base-transformer-presets');\n\nconst presets = [\n ...basePresets,\n [\n require('@babel/preset-env'),\n {\n targets: {\n node: 12,\n },\n useBuiltIns: 'usage',\n corejs: 3,\n },\n ],\n];\n\nconst plugins = [[require('@babel/plugin-transform-modules-commonjs')], ...basePlugins];\n\nmodule.exports = {\n process: generateProcessFunc(presets, plugins),\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["generateProcessFunc","require","basePlugins","basePresets","presets","targets","node","useBuiltIns","corejs","plugins","module","exports","process"],"sources":["cjs-transformer.js"],"sourcesContent":["/* eslint-disable import/order */\n/* eslint-disable global-require */\nconst { generateProcessFunc } = require('./base-transformer-process');\nconst { basePlugins } = require('./base-transformer-plugins');\nconst { basePresets } = require('./base-transformer-presets');\n\nconst presets = [\n ...basePresets,\n [\n require('@babel/preset-env'),\n {\n targets: {\n node: 12,\n },\n useBuiltIns: 'usage',\n corejs: 3,\n },\n ],\n];\n\nconst plugins = [[require('@babel/plugin-transform-modules-commonjs')], ...basePlugins];\n\nmodule.exports = {\n process: generateProcessFunc(presets, plugins),\n};\n"],"mappings":";;;AAAA;AACA;AACA,MAAM;EAAEA;AAAoB,CAAC,GAAGC,OAAO,CAAC,4BAA4B,CAAC;AACrE,MAAM;EAAEC;AAAY,CAAC,GAAGD,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM;EAAEE;AAAY,CAAC,GAAGF,OAAO,CAAC,4BAA4B,CAAC;AAE7D,MAAMG,OAAO,GAAG,CACd,GAAGD,WAAW,EACd,CACEF,OAAO,CAAC,mBAAmB,CAAC,EAC5B;EACEI,OAAO,EAAE;IACPC,IAAI,EAAE;EACR,CAAC;EACDC,WAAW,EAAE,OAAO;EACpBC,MAAM,EAAE;AACV,CAAC,CACF,CACF;AAED,MAAMC,OAAO,GAAG,CAAC,CAACR,OAAO,CAAC,0CAA0C,CAAC,CAAC,EAAE,GAAGC,WAAW,CAAC;AAEvFQ,MAAM,CAACC,OAAO,GAAG;EACfC,OAAO,EAAEZ,mBAAmB,CAACI,OAAO,EAAEK,OAAO;AAC/C,CAAC"}
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// This is a custom Jest transformer turning style imports into empty objects.
|
|
4
4
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
5
|
+
|
|
5
6
|
module.exports = {
|
|
6
7
|
process() {
|
|
7
8
|
return 'module.exports = {};';
|
|
8
9
|
},
|
|
9
|
-
|
|
10
10
|
getCacheKey() {
|
|
11
11
|
// The output is always the same.
|
|
12
12
|
return 'cssTransform';
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=css-transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["module","exports","process","getCacheKey"],"sources":["css-transform.js"],"sourcesContent":["// This is a custom Jest transformer turning style imports into empty objects.\n// http://facebook.github.io/jest/docs/en/webpack.html\n\nmodule.exports = {\n process() {\n return 'module.exports = {};';\n },\n getCacheKey() {\n // The output is always the same.\n return 'cssTransform';\n },\n};\n"],"mappings":";;AAAA;AACA
|
|
1
|
+
{"version":3,"names":["module","exports","process","getCacheKey"],"sources":["css-transform.js"],"sourcesContent":["// This is a custom Jest transformer turning style imports into empty objects.\n// http://facebook.github.io/jest/docs/en/webpack.html\n\nmodule.exports = {\n process() {\n return 'module.exports = {};';\n },\n getCacheKey() {\n // The output is always the same.\n return 'cssTransform';\n },\n};\n"],"mappings":";;AAAA;AACA;;AAEAA,MAAM,CAACC,OAAO,GAAG;EACfC,OAAO,GAAG;IACR,OAAO,sBAAsB;EAC/B,CAAC;EACDC,WAAW,GAAG;IACZ;IACA,OAAO,cAAc;EACvB;AACF,CAAC"}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
4
|
/* eslint-disable global-require */
|
|
6
|
-
|
|
7
5
|
/* eslint-disable import/order */
|
|
6
|
+
|
|
8
7
|
const {
|
|
9
8
|
basePlugins
|
|
10
9
|
} = require('./base-transformer-plugins');
|
|
11
|
-
|
|
12
10
|
const {
|
|
13
11
|
basePresets
|
|
14
12
|
} = require('./base-transformer-presets');
|
|
15
|
-
|
|
16
13
|
const {
|
|
17
14
|
generateProcessFunc
|
|
18
15
|
} = require('./base-transformer-process');
|
|
19
|
-
|
|
20
16
|
const presets = [...basePresets, [require('@babel/preset-env'), {
|
|
21
17
|
modules: false,
|
|
22
18
|
targets: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["basePlugins","require","basePresets","generateProcessFunc","presets","modules","targets","node","useBuiltIns","corejs","plugins","module","exports","process"],"sources":["esm-transformer.js"],"sourcesContent":["/* eslint-disable global-require */\n/* eslint-disable import/order */\n\nconst { basePlugins } = require('./base-transformer-plugins');\nconst { basePresets } = require('./base-transformer-presets');\nconst { generateProcessFunc } = require('./base-transformer-process');\n\nconst presets = [\n ...basePresets,\n [\n require('@babel/preset-env'),\n {\n modules: false,\n targets: {\n node: 12,\n },\n useBuiltIns: 'usage',\n corejs: 3,\n },\n ],\n];\n\nconst plugins = basePlugins;\n\nmodule.exports = {\n process: generateProcessFunc(presets, plugins),\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["basePlugins","require","basePresets","generateProcessFunc","presets","modules","targets","node","useBuiltIns","corejs","plugins","module","exports","process"],"sources":["esm-transformer.js"],"sourcesContent":["/* eslint-disable global-require */\n/* eslint-disable import/order */\n\nconst { basePlugins } = require('./base-transformer-plugins');\nconst { basePresets } = require('./base-transformer-presets');\nconst { generateProcessFunc } = require('./base-transformer-process');\n\nconst presets = [\n ...basePresets,\n [\n require('@babel/preset-env'),\n {\n modules: false,\n targets: {\n node: 12,\n },\n useBuiltIns: 'usage',\n corejs: 3,\n },\n ],\n];\n\nconst plugins = basePlugins;\n\nmodule.exports = {\n process: generateProcessFunc(presets, plugins),\n};\n"],"mappings":";;;AAAA;AACA;;AAEA,MAAM;EAAEA;AAAY,CAAC,GAAGC,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM;EAAEC;AAAY,CAAC,GAAGD,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM;EAAEE;AAAoB,CAAC,GAAGF,OAAO,CAAC,4BAA4B,CAAC;AAErE,MAAMG,OAAO,GAAG,CACd,GAAGF,WAAW,EACd,CACED,OAAO,CAAC,mBAAmB,CAAC,EAC5B;EACEI,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE;IACPC,IAAI,EAAE;EACR,CAAC;EACDC,WAAW,EAAE,OAAO;EACpBC,MAAM,EAAE;AACV,CAAC,CACF,CACF;AAED,MAAMC,OAAO,GAAGV,WAAW;AAE3BW,MAAM,CAACC,OAAO,GAAG;EACfC,OAAO,EAAEV,mBAAmB,CAACC,OAAO,EAAEM,OAAO;AAC/C,CAAC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.regexp.exec.js");
|
|
4
|
-
|
|
5
4
|
const path = require('path');
|
|
5
|
+
const camelcase = require('camelcase');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// This is a custom Jest transformer turning file imports into filenames.
|
|
8
8
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
module.exports = {
|
|
12
11
|
process(src, filename) {
|
|
13
12
|
const assetFilename = JSON.stringify(path.basename(filename));
|
|
14
|
-
|
|
15
13
|
if (filename.match(/\.svg$/)) {
|
|
16
14
|
// Based on how SVGR generates a component name:
|
|
17
15
|
// https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6
|
|
@@ -36,10 +34,8 @@ module.exports = {
|
|
|
36
34
|
}),
|
|
37
35
|
};`;
|
|
38
36
|
}
|
|
39
|
-
|
|
40
37
|
return `module.exports = ${assetFilename};`;
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
};
|
|
44
40
|
|
|
45
41
|
//# sourceMappingURL=file-transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["path","require","camelcase","module","exports","process","src","filename","assetFilename","JSON","stringify","basename","match","pascalCaseFilename","parse","name","pascalCase","componentName"],"sources":["file-transform.js"],"sourcesContent":["const path = require('path');\nconst camelcase = require('camelcase');\n\n// This is a custom Jest transformer turning file imports into filenames.\n// http://facebook.github.io/jest/docs/en/webpack.html\n\nmodule.exports = {\n process(src, filename) {\n const assetFilename = JSON.stringify(path.basename(filename));\n\n if (filename.match(/\\.svg$/)) {\n // Based on how SVGR generates a component name:\n // https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6\n const pascalCaseFilename = camelcase(path.parse(filename).name, {\n pascalCase: true,\n });\n const componentName = `Svg${pascalCaseFilename}`;\n return `const React = require('react');\n module.exports = {\n __esModule: true,\n default: ${assetFilename},\n ReactComponent: React.forwardRef(function ${componentName}(props, ref) {\n return {\n $$typeof: Symbol.for('react.element'),\n type: 'svg',\n ref: ref,\n key: null,\n props: Object.assign({}, props, {\n children: ${assetFilename}\n })\n };\n }),\n };`;\n }\n\n return `module.exports = ${assetFilename};`;\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["path","require","camelcase","module","exports","process","src","filename","assetFilename","JSON","stringify","basename","match","pascalCaseFilename","parse","name","pascalCase","componentName"],"sources":["file-transform.js"],"sourcesContent":["const path = require('path');\nconst camelcase = require('camelcase');\n\n// This is a custom Jest transformer turning file imports into filenames.\n// http://facebook.github.io/jest/docs/en/webpack.html\n\nmodule.exports = {\n process(src, filename) {\n const assetFilename = JSON.stringify(path.basename(filename));\n\n if (filename.match(/\\.svg$/)) {\n // Based on how SVGR generates a component name:\n // https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6\n const pascalCaseFilename = camelcase(path.parse(filename).name, {\n pascalCase: true,\n });\n const componentName = `Svg${pascalCaseFilename}`;\n return `const React = require('react');\n module.exports = {\n __esModule: true,\n default: ${assetFilename},\n ReactComponent: React.forwardRef(function ${componentName}(props, ref) {\n return {\n $$typeof: Symbol.for('react.element'),\n type: 'svg',\n ref: ref,\n key: null,\n props: Object.assign({}, props, {\n children: ${assetFilename}\n })\n };\n }),\n };`;\n }\n\n return `module.exports = ${assetFilename};`;\n },\n};\n"],"mappings":";;;AAAA,MAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;AAC5B,MAAMC,SAAS,GAAGD,OAAO,CAAC,WAAW,CAAC;;AAEtC;AACA;;AAEAE,MAAM,CAACC,OAAO,GAAG;EACfC,OAAO,CAACC,GAAG,EAAEC,QAAQ,EAAE;IACrB,MAAMC,aAAa,GAAGC,IAAI,CAACC,SAAS,CAACV,IAAI,CAACW,QAAQ,CAACJ,QAAQ,CAAC,CAAC;IAE7D,IAAIA,QAAQ,CAACK,KAAK,CAAC,QAAQ,CAAC,EAAE;MAC5B;MACA;MACA,MAAMC,kBAAkB,GAAGX,SAAS,CAACF,IAAI,CAACc,KAAK,CAACP,QAAQ,CAAC,CAACQ,IAAI,EAAE;QAC9DC,UAAU,EAAE;MACd,CAAC,CAAC;MACF,MAAMC,aAAa,GAAI,MAAKJ,kBAAmB,EAAC;MAChD,OAAQ;AACd;AACA;AACA,mBAAmBL,aAAc;AACjC,oDAAoDS,aAAc;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0BT,aAAc;AACxC;AACA;AACA;AACA,SAAS;IACL;IAEA,OAAQ,oBAAmBA,aAAc,GAAE;EAC7C;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["module","exports","trailingComma","tabWidth","singleQuote"],"sources":["prettier.config.js"],"sourcesContent":["module.exports = {\n trailingComma: 'es5',\n tabWidth: 2,\n singleQuote: true,\n};\n"],"mappings":";;AAAAA,MAAM,CAACC,
|
|
1
|
+
{"version":3,"names":["module","exports","trailingComma","tabWidth","singleQuote"],"sources":["prettier.config.js"],"sourcesContent":["module.exports = {\n trailingComma: 'es5',\n tabWidth: 2,\n singleQuote: true,\n};\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,aAAa,EAAE,KAAK;EACpBC,QAAQ,EAAE,CAAC;EACXC,WAAW,EAAE;AACf,CAAC"}
|
package/dist/react.aspect.js
CHANGED
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ReactAspect = void 0;
|
|
7
|
-
|
|
8
7
|
function _harmony() {
|
|
9
8
|
const data = require("@teambit/harmony");
|
|
10
|
-
|
|
11
9
|
_harmony = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
const ReactAspect = _harmony().Aspect.create({
|
|
19
15
|
id: 'teambit.react/react'
|
|
20
16
|
});
|
|
21
|
-
|
|
22
17
|
exports.ReactAspect = ReactAspect;
|
|
23
18
|
|
|
24
19
|
//# sourceMappingURL=react.aspect.js.map
|
package/dist/react.aspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ReactAspect","Aspect","create","id"],"sources":["react.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ReactAspect = Aspect.create({\n id: 'teambit.react/react',\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ReactAspect","Aspect","create","id"],"sources":["react.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ReactAspect = Aspect.create({\n id: 'teambit.react/react',\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,WAAW,GAAGC,iBAAM,CAACC,MAAM,CAAC;EACvCC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.Logo = void 0;
|
|
9
|
-
|
|
10
8
|
function _react() {
|
|
11
9
|
const data = _interopRequireDefault(require("react"));
|
|
12
|
-
|
|
13
10
|
_react = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
|
21
16
|
style: {
|
|
22
17
|
height: '100%',
|
|
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
|
|
29
24
|
},
|
|
30
25
|
src: "https://static.bit.dev/extensions-icons/react.svg"
|
|
31
26
|
}));
|
|
32
|
-
|
|
33
27
|
exports.Logo = Logo;
|
|
34
28
|
|
|
35
29
|
//# sourceMappingURL=react.composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["react.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/react.svg\" />\n </div>\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["react.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/react.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAAmD,EAAG,CAExF;AAAC"}
|