@teambit/webpack 0.0.866 → 0.0.868
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/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/transformers/inject-head.js.map +1 -1
- package/package-tar/teambit-webpack-0.0.868.tgz +0 -0
- package/package.json +9 -9
- package/{preview-1664710331381.js → preview-1664735485436.js} +2 -2
- package/transformers/inject-head.ts +1 -1
- package/package-tar/teambit-webpack-0.0.866.tgz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export { WebpackBitReporterPlugin } from './plugins/webpack-bit-reporter-plugin'
|
|
|
11
11
|
export { fallbacks } from './config/webpack-fallbacks';
|
|
12
12
|
export { fallbacksAliases } from './config/webpack-fallbacks-aliases';
|
|
13
13
|
export { fallbacksProvidePluginConfig } from './config/webpack-fallbacks-provide-plugin-config';
|
|
14
|
-
export { GenerateBodyInjectionTransformer, BodyInjectionOptions, generateAddAliasesFromPeersTransformer, generateExposePeersTransformer, generateExternalsTransformer, GenerateHeadInjectionTransformer, HeadInjectionOptions } from './transformers';
|
|
14
|
+
export { GenerateBodyInjectionTransformer, BodyInjectionOptions, generateAddAliasesFromPeersTransformer, generateExposePeersTransformer, generateExternalsTransformer, GenerateHeadInjectionTransformer, HeadInjectionOptions, } from './transformers';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type {\n WebpackMain,\n WebpackConfigTransformer,\n WebpackConfigTransformContext,\n WebpackConfigDevServerTransformContext,\n GlobalWebpackConfigTransformContext,\n WebpackConfigDevServerTransformer,\n} from './webpack.main.runtime';\nexport { runTransformersWithContext } from './webpack.main.runtime';\nexport { WebpackAspect } from './webpack.aspect';\nexport { WebpackDevServer } from './webpack.dev-server';\nexport { WebpackBundler } from './webpack.bundler';\nexport type { WebpackConfigWithDevServer } from './webpack.dev-server';\nexport * from './events';\nexport { Configuration } from 'webpack';\nexport { WebpackConfigMutator } from '@teambit/webpack.modules.config-mutator';\nexport { WebpackBitReporterPlugin } from './plugins/webpack-bit-reporter-plugin';\nexport { fallbacks } from './config/webpack-fallbacks';\nexport { fallbacksAliases } from './config/webpack-fallbacks-aliases';\nexport { fallbacksProvidePluginConfig } from './config/webpack-fallbacks-provide-plugin-config';\nexport {\n GenerateBodyInjectionTransformer,\n BodyInjectionOptions,\n generateAddAliasesFromPeersTransformer,\n generateExposePeersTransformer,\n generateExternalsTransformer,\n GenerateHeadInjectionTransformer,\n HeadInjectionOptions
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type {\n WebpackMain,\n WebpackConfigTransformer,\n WebpackConfigTransformContext,\n WebpackConfigDevServerTransformContext,\n GlobalWebpackConfigTransformContext,\n WebpackConfigDevServerTransformer,\n} from './webpack.main.runtime';\nexport { runTransformersWithContext } from './webpack.main.runtime';\nexport { WebpackAspect } from './webpack.aspect';\nexport { WebpackDevServer } from './webpack.dev-server';\nexport { WebpackBundler } from './webpack.bundler';\nexport type { WebpackConfigWithDevServer } from './webpack.dev-server';\nexport * from './events';\nexport { Configuration } from 'webpack';\nexport { WebpackConfigMutator } from '@teambit/webpack.modules.config-mutator';\nexport { WebpackBitReporterPlugin } from './plugins/webpack-bit-reporter-plugin';\nexport { fallbacks } from './config/webpack-fallbacks';\nexport { fallbacksAliases } from './config/webpack-fallbacks-aliases';\nexport { fallbacksProvidePluginConfig } from './config/webpack-fallbacks-provide-plugin-config';\nexport {\n GenerateBodyInjectionTransformer,\n BodyInjectionOptions,\n generateAddAliasesFromPeersTransformer,\n generateExposePeersTransformer,\n generateExternalsTransformer,\n GenerateHeadInjectionTransformer,\n HeadInjectionOptions,\n} from './transformers';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GenerateHeadInjectionTransformer","options","config","plugin","InjectHeadPlugin","addPlugin"],"sources":["inject-head.ts"],"sourcesContent":["import {InjectHeadPlugin} from '@teambit/webpack.plugins.inject-head-webpack-plugin';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\n\nexport type HeadInjectionOptions = {\n content: string;\n position?: 'start' | 'end';\n};\n\n/**\n * A transformer that allow you to inject content into your html head\n * We expose it from here, as it uses the inject-head-webpack-plugin which register to the html plugin hooks\n * which means it depends on the fact that it has the same html plugin instance\n * since, the html plugin is configured via the webpack aspect, expose it from here ensure the same instance\n * @param options\n * @returns\n */\nexport function GenerateHeadInjectionTransformer(options: HeadInjectionOptions): WebpackConfigTransformer {\n return (config) => {\n const plugin = new InjectHeadPlugin(options);\n return config.addPlugin(plugin);\n };\n}\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,gCAAT,CAA0CC,OAA1C,EAAmG;EACxG,OAAQC,MAAD,IAAY;IACjB,MAAMC,MAAM,GAAG,KAAIC,kCAAJ,EAAqBH,OAArB,CAAf;IACA,OAAOC,MAAM,CAACG,SAAP,CAAiBF,MAAjB,CAAP;EACD,CAHD;AAID"}
|
|
1
|
+
{"version":3,"names":["GenerateHeadInjectionTransformer","options","config","plugin","InjectHeadPlugin","addPlugin"],"sources":["inject-head.ts"],"sourcesContent":["import { InjectHeadPlugin } from '@teambit/webpack.plugins.inject-head-webpack-plugin';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\n\nexport type HeadInjectionOptions = {\n content: string;\n position?: 'start' | 'end';\n};\n\n/**\n * A transformer that allow you to inject content into your html head\n * We expose it from here, as it uses the inject-head-webpack-plugin which register to the html plugin hooks\n * which means it depends on the fact that it has the same html plugin instance\n * since, the html plugin is configured via the webpack aspect, expose it from here ensure the same instance\n * @param options\n * @returns\n */\nexport function GenerateHeadInjectionTransformer(options: HeadInjectionOptions): WebpackConfigTransformer {\n return (config) => {\n const plugin = new InjectHeadPlugin(options);\n return config.addPlugin(plugin);\n };\n}\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,gCAAT,CAA0CC,OAA1C,EAAmG;EACxG,OAAQC,MAAD,IAAY;IACjB,MAAMC,MAAM,GAAG,KAAIC,kCAAJ,EAAqBH,OAArB,CAAf;IACA,OAAOC,MAAM,CAACG,SAAP,CAAiBF,MAAjB,CAAP;EACD,CAHD;AAID"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/webpack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.868",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/webpack/webpack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.webpack",
|
|
8
8
|
"name": "webpack",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.868"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"webpack": "5.51.1",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@teambit/harmony": "0.3.3",
|
|
49
49
|
"@teambit/webpack.modules.config-mutator": "0.0.147",
|
|
50
50
|
"@teambit/bit-error": "0.0.400",
|
|
51
|
-
"@teambit/bundler": "0.0.
|
|
52
|
-
"@teambit/logger": "0.0.
|
|
53
|
-
"@teambit/cli": "0.0.
|
|
54
|
-
"@teambit/pubsub": "0.0.
|
|
55
|
-
"@teambit/workspace": "0.0.
|
|
51
|
+
"@teambit/bundler": "0.0.868",
|
|
52
|
+
"@teambit/logger": "0.0.672",
|
|
53
|
+
"@teambit/cli": "0.0.579",
|
|
54
|
+
"@teambit/pubsub": "0.0.868",
|
|
55
|
+
"@teambit/workspace": "0.0.868",
|
|
56
56
|
"@teambit/webpack.modules.generate-expose-loaders": "0.0.9",
|
|
57
57
|
"@teambit/webpack.modules.generate-externals": "0.0.10",
|
|
58
|
-
"@teambit/webpack.plugins.inject-head-webpack-plugin": "0.0.
|
|
58
|
+
"@teambit/webpack.plugins.inject-head-webpack-plugin": "0.0.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/webpack": "5.28.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/node": "12.20.4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@teambit/legacy": "1.0.
|
|
73
|
+
"@teambit/legacy": "1.0.360",
|
|
74
74
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
75
75
|
"react": "^16.8.0 || ^17.0.0"
|
|
76
76
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.868/dist/webpack.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.868/dist/webpack.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {InjectHeadPlugin} from '@teambit/webpack.plugins.inject-head-webpack-plugin';
|
|
1
|
+
import { InjectHeadPlugin } from '@teambit/webpack.plugins.inject-head-webpack-plugin';
|
|
2
2
|
import type { WebpackConfigTransformer } from '@teambit/webpack';
|
|
3
3
|
|
|
4
4
|
export type HeadInjectionOptions = {
|
|
Binary file
|