add parserOptions.importMetaContext option
This commit is contained in:
parent
75383c93d2
commit
f51e099a2d
|
@ -2965,6 +2965,10 @@ export interface JavascriptParserOptions {
|
|||
* Enable/disable evaluating import.meta.
|
||||
*/
|
||||
importMeta?: boolean;
|
||||
/**
|
||||
* Enable/disable evaluating import.meta.webpackContext.
|
||||
*/
|
||||
importMetaContext?: boolean;
|
||||
/**
|
||||
* Include polyfills or mocks for various node stuff.
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1624,6 +1624,10 @@
|
|||
"description": "Enable/disable evaluating import.meta.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"importMetaContext": {
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"node": {
|
||||
"$ref": "#/definitions/Node"
|
||||
},
|
||||
|
|
|
@ -1638,6 +1638,19 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-auto-import-meta-context": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"path": "module.parser.javascript/auto.importMetaContext",
|
||||
"type": "boolean",
|
||||
},
|
||||
],
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-auto-node": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -2202,6 +2215,19 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-dynamic-import-meta-context": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"path": "module.parser.javascript/dynamic.importMetaContext",
|
||||
"type": "boolean",
|
||||
},
|
||||
],
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-dynamic-node": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -2727,6 +2753,19 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-esm-import-meta-context": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"path": "module.parser.javascript/esm.importMetaContext",
|
||||
"type": "boolean",
|
||||
},
|
||||
],
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-esm-node": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
@ -3197,6 +3236,19 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-import-meta-context": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"path": "module.parser.javascript.importMetaContext",
|
||||
"type": "boolean",
|
||||
},
|
||||
],
|
||||
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"module-parser-javascript-node": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
|
|
@ -5508,6 +5508,11 @@ declare interface JavascriptParserOptions {
|
|||
*/
|
||||
importMeta?: boolean;
|
||||
|
||||
/**
|
||||
* Enable/disable evaluating import.meta.webpackContext.
|
||||
*/
|
||||
importMetaContext?: boolean;
|
||||
|
||||
/**
|
||||
* Include polyfills or mocks for various node stuff.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue