mirror of https://github.com/webpack/webpack.git
remove chunkCallbackName, update snapshots
This commit is contained in:
parent
7dbecd0c80
commit
a7e86c791c
|
@ -344,10 +344,6 @@ export type AssetModuleFilename =
|
|||
* Add charset attribute for script tag.
|
||||
*/
|
||||
export type Charset = boolean;
|
||||
/**
|
||||
* The callback function name used by webpack for loading of chunks in WebWorkers.
|
||||
*/
|
||||
export type ChunkCallbackName = string;
|
||||
/**
|
||||
* The filename of non-entry chunks as relative path inside the `output.path` directory.
|
||||
*/
|
||||
|
@ -1606,10 +1602,6 @@ export interface Output {
|
|||
* Add charset attribute for script tag.
|
||||
*/
|
||||
charset?: Charset;
|
||||
/**
|
||||
* The callback function name used by webpack for loading of chunks in WebWorkers.
|
||||
*/
|
||||
chunkCallbackName?: ChunkCallbackName;
|
||||
/**
|
||||
* The filename of non-entry chunks as relative path inside the `output.path` directory.
|
||||
*/
|
||||
|
@ -2160,10 +2152,6 @@ export interface OutputNormalized {
|
|||
* Add charset attribute for script tag.
|
||||
*/
|
||||
charset?: Charset;
|
||||
/**
|
||||
* The callback function name used by webpack for loading of chunks in WebWorkers.
|
||||
*/
|
||||
chunkCallbackName?: ChunkCallbackName;
|
||||
/**
|
||||
* The filename of non-entry chunks as relative path inside the `output.path` directory.
|
||||
*/
|
||||
|
|
|
@ -73,10 +73,6 @@
|
|||
"description": "Add charset attribute for script tag.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"ChunkCallbackName": {
|
||||
"description": "The callback function name used by webpack for loading of chunks in WebWorkers.",
|
||||
"type": "string"
|
||||
},
|
||||
"ChunkFilename": {
|
||||
"description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
|
||||
"type": "string",
|
||||
|
@ -1732,9 +1728,6 @@
|
|||
"charset": {
|
||||
"$ref": "#/definitions/Charset"
|
||||
},
|
||||
"chunkCallbackName": {
|
||||
"$ref": "#/definitions/ChunkCallbackName"
|
||||
},
|
||||
"chunkFilename": {
|
||||
"$ref": "#/definitions/ChunkFilename"
|
||||
},
|
||||
|
@ -1887,9 +1880,6 @@
|
|||
"charset": {
|
||||
"$ref": "#/definitions/Charset"
|
||||
},
|
||||
"chunkCallbackName": {
|
||||
"$ref": "#/definitions/ChunkCallbackName"
|
||||
},
|
||||
"chunkFilename": {
|
||||
"$ref": "#/definitions/ChunkFilename"
|
||||
},
|
||||
|
|
|
@ -210,7 +210,9 @@ describe("Defaults", () => {
|
|||
"assetModuleFilename": "[hash][ext][query]",
|
||||
"charset": true,
|
||||
"chunkFilename": "[name].js",
|
||||
"chunkFormat": "array-push",
|
||||
"chunkLoadTimeout": 120000,
|
||||
"chunkLoading": "jsonp",
|
||||
"chunkLoadingGlobal": "webpackChunkwebpack",
|
||||
"compareBeforeEmit": true,
|
||||
"crossOriginLoading": false,
|
||||
|
@ -218,6 +220,9 @@ describe("Defaults", () => {
|
|||
"devtoolModuleFilenameTemplate": undefined,
|
||||
"devtoolNamespace": "webpack",
|
||||
"ecmaVersion": 6,
|
||||
"enabledChunkLoadingTypes": Array [
|
||||
"jsonp",
|
||||
],
|
||||
"enabledLibraryTypes": Array [],
|
||||
"filename": "[name].js",
|
||||
"globalObject": "window",
|
||||
|
@ -968,6 +973,15 @@ describe("Defaults", () => {
|
|||
+ "__filename": false,
|
||||
+ "global": false,
|
||||
@@ ... @@
|
||||
- "chunkFormat": "array-push",
|
||||
+ "chunkFormat": "commonjs",
|
||||
@@ ... @@
|
||||
- "chunkLoading": "jsonp",
|
||||
+ "chunkLoading": "require",
|
||||
@@ ... @@
|
||||
- "jsonp",
|
||||
+ "require",
|
||||
@@ ... @@
|
||||
- "globalObject": "window",
|
||||
+ "globalObject": "global",
|
||||
@@ ... @@
|
||||
|
@ -1068,6 +1082,15 @@ describe("Defaults", () => {
|
|||
+ "__filename": false,
|
||||
+ "global": false,
|
||||
@@ ... @@
|
||||
- "chunkFormat": "array-push",
|
||||
+ "chunkFormat": "commonjs",
|
||||
@@ ... @@
|
||||
- "chunkLoading": "jsonp",
|
||||
+ "chunkLoading": "require",
|
||||
@@ ... @@
|
||||
- "jsonp",
|
||||
+ "require",
|
||||
@@ ... @@
|
||||
- "globalObject": "window",
|
||||
+ "globalObject": "global",
|
||||
@@ ... @@
|
||||
|
@ -1146,9 +1169,18 @@ describe("Defaults", () => {
|
|||
- Expected
|
||||
+ Received
|
||||
|
||||
@@ ... @@
|
||||
- "chunkFormat": "array-push",
|
||||
+ "chunkFormat": "commonjs",
|
||||
@@ ... @@
|
||||
- "chunkLoading": "jsonp",
|
||||
+ "chunkLoading": "require",
|
||||
@@ ... @@
|
||||
- "jsonp",
|
||||
+ "require",
|
||||
@@ ... @@
|
||||
- "globalObject": "window",
|
||||
+ "globalObject": "self",
|
||||
+ "globalObject": "global",
|
||||
@@ ... @@
|
||||
- "aliasFields": Array [
|
||||
- "browser",
|
||||
|
|
|
@ -1807,19 +1807,6 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"output-chunk-callback-name": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "The callback function name used by webpack for loading of chunks in WebWorkers.",
|
||||
"multiple": false,
|
||||
"path": "output.chunkCallbackName",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "The callback function name used by webpack for loading of chunks in WebWorkers.",
|
||||
"multiple": false,
|
||||
"simpleType": "string",
|
||||
},
|
||||
"output-chunk-filename": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -1833,6 +1820,30 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "string",
|
||||
},
|
||||
"output-chunk-format": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.chunkFormat",
|
||||
"type": "enum",
|
||||
"values": Array [
|
||||
"array-push",
|
||||
"commonjs",
|
||||
false,
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.chunkFormat",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"simpleType": "string",
|
||||
},
|
||||
"output-chunk-load-timeout": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -1846,6 +1857,40 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "number",
|
||||
},
|
||||
"output-chunk-loading": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.chunkLoading",
|
||||
"type": "enum",
|
||||
"values": Array [
|
||||
false,
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.chunkLoading",
|
||||
"type": "enum",
|
||||
"values": Array [
|
||||
"jsonp",
|
||||
"import-scripts",
|
||||
"require",
|
||||
"async-node",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.chunkLoading",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"simpleType": "string",
|
||||
},
|
||||
"output-chunk-loading-global": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -1951,10 +1996,48 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "number",
|
||||
},
|
||||
"output-enabled-chunk-loading-types": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"path": "output.enabledChunkLoadingTypes[]",
|
||||
"type": "enum",
|
||||
"values": Array [
|
||||
"jsonp",
|
||||
"import-scripts",
|
||||
"require",
|
||||
"async-node",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"path": "output.enabledChunkLoadingTypes[]",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"simpleType": "string",
|
||||
},
|
||||
"output-enabled-chunk-loading-types-reset": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Clear all items provided in configuration. List of chunk loading types enabled for use by entry points.",
|
||||
"multiple": false,
|
||||
"path": "output.enabledChunkLoadingTypes",
|
||||
"type": "reset",
|
||||
},
|
||||
],
|
||||
"description": "Clear all items provided in configuration. List of chunk loading types enabled for use by entry points.",
|
||||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"output-enabled-library-types": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Type of library.",
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"path": "output.enabledLibraryTypes[]",
|
||||
"type": "enum",
|
||||
|
@ -1977,8 +2060,14 @@ Object {
|
|||
"system",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"path": "output.enabledLibraryTypes[]",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "Type of library.",
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": true,
|
||||
"simpleType": "string",
|
||||
},
|
||||
|
@ -2388,7 +2477,7 @@ Object {
|
|||
"output-library-type": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Type of library.",
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.library.type",
|
||||
"type": "enum",
|
||||
|
@ -2411,8 +2500,14 @@ Object {
|
|||
"system",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"path": "output.library.type",
|
||||
"type": "string",
|
||||
},
|
||||
],
|
||||
"description": "Type of library.",
|
||||
"description": "Type of library (types included by default are 'var', 'module', 'assign', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
||||
"multiple": false,
|
||||
"simpleType": "string",
|
||||
},
|
||||
|
|
|
@ -5576,11 +5576,6 @@ declare interface Output {
|
|||
*/
|
||||
charset?: boolean;
|
||||
|
||||
/**
|
||||
* The callback function name used by webpack for loading of chunks in WebWorkers.
|
||||
*/
|
||||
chunkCallbackName?: string;
|
||||
|
||||
/**
|
||||
* The filename of non-entry chunks as relative path inside the `output.path` directory.
|
||||
*/
|
||||
|
@ -5805,11 +5800,6 @@ declare interface OutputNormalized {
|
|||
*/
|
||||
charset?: boolean;
|
||||
|
||||
/**
|
||||
* The callback function name used by webpack for loading of chunks in WebWorkers.
|
||||
*/
|
||||
chunkCallbackName?: string;
|
||||
|
||||
/**
|
||||
* The filename of non-entry chunks as relative path inside the `output.path` directory.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue