@teambit/webpack 0.0.533 → 0.0.537
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/config/webpack.config.ts
CHANGED
|
@@ -21,14 +21,6 @@ export function configFactory(entries: string[], rootPath: string): Configuratio
|
|
|
21
21
|
filename: 'static/js/[name].[contenthash:8].js',
|
|
22
22
|
// There are also additional JS chunk files if you use code splitting.
|
|
23
23
|
chunkFilename: 'static/js/[name].[contenthash:8].chunk.js',
|
|
24
|
-
// webpack uses `publicPath` to determine where the app is being served from.
|
|
25
|
-
// It requires a trailing slash, or the file assets will get an incorrect path.
|
|
26
|
-
// We inferred the "public path" (such as / or /my-project) from homepage.
|
|
27
|
-
publicPath: ``,
|
|
28
|
-
// this defaults to 'window', but by setting it to 'this' then
|
|
29
|
-
// module chunks which are built will work in web workers as well.
|
|
30
|
-
// Commented out to use the default (self) as according to tobias with webpack5 self is working with workers as well
|
|
31
|
-
// globalObject: 'this',
|
|
32
24
|
},
|
|
33
25
|
|
|
34
26
|
resolve: {
|
|
@@ -80,15 +80,7 @@ function configFactory(entries, rootPath) {
|
|
|
80
80
|
path: `${rootPath}/public`,
|
|
81
81
|
filename: 'static/js/[name].[contenthash:8].js',
|
|
82
82
|
// There are also additional JS chunk files if you use code splitting.
|
|
83
|
-
chunkFilename: 'static/js/[name].[contenthash:8].chunk.js'
|
|
84
|
-
// webpack uses `publicPath` to determine where the app is being served from.
|
|
85
|
-
// It requires a trailing slash, or the file assets will get an incorrect path.
|
|
86
|
-
// We inferred the "public path" (such as / or /my-project) from homepage.
|
|
87
|
-
publicPath: `` // this defaults to 'window', but by setting it to 'this' then
|
|
88
|
-
// module chunks which are built will work in web workers as well.
|
|
89
|
-
// Commented out to use the default (self) as according to tobias with webpack5 self is working with workers as well
|
|
90
|
-
// globalObject: 'this',
|
|
91
|
-
|
|
83
|
+
chunkFilename: 'static/js/[name].[contenthash:8].chunk.js'
|
|
92
84
|
},
|
|
93
85
|
resolve: {
|
|
94
86
|
alias: _webpackFallbacksAliases().fallbacksAliases,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack.config.ts"],"names":["configFactory","entries","rootPath","mode","bail","entry","filter","Boolean","output","path","filename","chunkFilename","
|
|
1
|
+
{"version":3,"sources":["webpack.config.ts"],"names":["configFactory","entries","rootPath","mode","bail","entry","filter","Boolean","output","path","filename","chunkFilename","resolve","alias","fallbacksAliases","fallback","fallbacks","plugins","HtmlWebpackPlugin","Object","assign","inject","templateContent","minify","removeComments","collapseWhitespace","removeRedundantAttributes","useShortDoctype","removeEmptyAttributes","removeStyleLinkTypeAttributes","keepClosingSlash","minifyJS","minifyCSS","minifyURLs","webpack","ProvidePlugin","fallbacksProvidePluginConfig"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,SAASA,aAAT,CAAuBC,OAAvB,EAA0CC,QAA1C,EAA2E;AAChF,SAAO;AACLC,IAAAA,IAAI,EAAE,YADD;AAEL;AACAC,IAAAA,IAAI,EAAE,IAHD;AAIL;AACA;AACAC,IAAAA,KAAK,EAAEJ,OAAO,CAACK,MAAR,CAAeC,OAAf,CANF;AAQLC,IAAAA,MAAM,EAAE;AACN;AACAC,MAAAA,IAAI,EAAG,GAAEP,QAAS,SAFZ;AAINQ,MAAAA,QAAQ,EAAE,qCAJJ;AAKN;AACAC,MAAAA,aAAa,EAAE;AANT,KARH;AAiBLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,KAAK,EAAEC,2CADA;AAGPC,MAAAA,QAAQ,EAAEC;AAHH,KAjBJ;AAuBLC,IAAAA,OAAO,EAAE,CACP,KAAIC,4BAAJ,EACEC,MAAM,CAACC,MAAP,CACE,EADF,EAEE;AACEC,MAAAA,MAAM,EAAE,IADV;AAEEC,MAAAA,eAAe,EAAE,kBAAK,SAAL;AAFnB,KAFF,EAME;AACEC,MAAAA,MAAM,EAAE;AACNC,QAAAA,cAAc,EAAE,IADV;AAENC,QAAAA,kBAAkB,EAAE,IAFd;AAGNC,QAAAA,yBAAyB,EAAE,IAHrB;AAINC,QAAAA,eAAe,EAAE,IAJX;AAKNC,QAAAA,qBAAqB,EAAE,IALjB;AAMNC,QAAAA,6BAA6B,EAAE,IANzB;AAONC,QAAAA,gBAAgB,EAAE,IAPZ;AAQNC,QAAAA,QAAQ,EAAE,IARJ;AASNC,QAAAA,SAAS,EAAE,IATL;AAUNC,QAAAA,UAAU,EAAE;AAVN;AADV,KANF,CADF,CADO,EAwBP,KAAIC,mBAAQC,aAAZ,EAA0BC,mEAA1B,CAxBO;AAvBJ,GAAP;AAkDD","sourcesContent":["import webpack, { Configuration } from 'webpack';\nimport HtmlWebpackPlugin from 'html-webpack-plugin';\nimport { fallbacks } from './webpack-fallbacks';\nimport { fallbacksProvidePluginConfig } from './webpack-fallbacks-provide-plugin-config';\nimport { fallbacksAliases } from './webpack-fallbacks-aliases';\nimport { html } from './html';\n\nexport function configFactory(entries: string[], rootPath: string): Configuration {\n return {\n mode: 'production',\n // Stop compilation early in production\n bail: true,\n // These are the \"entry points\" to our application.\n // This means they will be the \"root\" imports that are included in JS bundle.\n entry: entries.filter(Boolean),\n\n output: {\n // The build folder.\n path: `${rootPath}/public`,\n\n filename: 'static/js/[name].[contenthash:8].js',\n // There are also additional JS chunk files if you use code splitting.\n chunkFilename: 'static/js/[name].[contenthash:8].chunk.js',\n },\n\n resolve: {\n alias: fallbacksAliases,\n\n fallback: fallbacks,\n },\n\n plugins: [\n new HtmlWebpackPlugin(\n Object.assign(\n {},\n {\n inject: true,\n templateContent: html('Preview'),\n },\n {\n minify: {\n removeComments: true,\n collapseWhitespace: true,\n removeRedundantAttributes: true,\n useShortDoctype: true,\n removeEmptyAttributes: true,\n removeStyleLinkTypeAttributes: true,\n keepClosingSlash: true,\n minifyJS: true,\n minifyCSS: true,\n minifyURLs: true,\n },\n }\n )\n ),\n new webpack.ProvidePlugin(fallbacksProvidePluginConfig),\n ],\n };\n}\n"]}
|
|
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.537",
|
|
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.537"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"webpack": "5.51.1",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"assert": "2.0.0",
|
|
39
39
|
"@babel/runtime": "7.12.18",
|
|
40
40
|
"core-js": "^3.0.0",
|
|
41
|
-
"@teambit/webpack.modules.config-mutator": "0.0.
|
|
41
|
+
"@teambit/webpack.modules.config-mutator": "0.0.102",
|
|
42
42
|
"@teambit/bit-error": "0.0.366",
|
|
43
|
-
"@teambit/bundler": "0.0.
|
|
44
|
-
"@teambit/logger": "0.0.
|
|
43
|
+
"@teambit/bundler": "0.0.537",
|
|
44
|
+
"@teambit/logger": "0.0.459",
|
|
45
45
|
"@teambit/cli": "0.0.380",
|
|
46
|
-
"@teambit/pubsub": "0.0.
|
|
47
|
-
"@teambit/workspace": "0.0.
|
|
46
|
+
"@teambit/pubsub": "0.0.537",
|
|
47
|
+
"@teambit/workspace": "0.0.537"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/webpack": "5.28.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/node": "12.20.4"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@teambit/legacy": "1.0.
|
|
59
|
+
"@teambit/legacy": "1.0.166",
|
|
60
60
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
|
Binary file
|