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.
|
* Enable/disable evaluating import.meta.
|
||||||
*/
|
*/
|
||||||
importMeta?: boolean;
|
importMeta?: boolean;
|
||||||
|
/**
|
||||||
|
* Enable/disable evaluating import.meta.webpackContext.
|
||||||
|
*/
|
||||||
|
importMetaContext?: boolean;
|
||||||
/**
|
/**
|
||||||
* Include polyfills or mocks for various node stuff.
|
* 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.",
|
"description": "Enable/disable evaluating import.meta.",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"importMetaContext": {
|
||||||
|
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"node": {
|
"node": {
|
||||||
"$ref": "#/definitions/Node"
|
"$ref": "#/definitions/Node"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1638,6 +1638,19 @@ Object {
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"simpleType": "boolean",
|
"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 {
|
"module-parser-javascript-auto-node": Object {
|
||||||
"configs": Array [
|
"configs": Array [
|
||||||
Object {
|
Object {
|
||||||
|
@ -2202,6 +2215,19 @@ Object {
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"simpleType": "boolean",
|
"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 {
|
"module-parser-javascript-dynamic-node": Object {
|
||||||
"configs": Array [
|
"configs": Array [
|
||||||
Object {
|
Object {
|
||||||
|
@ -2727,6 +2753,19 @@ Object {
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"simpleType": "boolean",
|
"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 {
|
"module-parser-javascript-esm-node": Object {
|
||||||
"configs": Array [
|
"configs": Array [
|
||||||
Object {
|
Object {
|
||||||
|
@ -3197,6 +3236,19 @@ Object {
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"simpleType": "boolean",
|
"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 {
|
"module-parser-javascript-node": Object {
|
||||||
"configs": Array [
|
"configs": Array [
|
||||||
Object {
|
Object {
|
||||||
|
|
|
@ -5508,6 +5508,11 @@ declare interface JavascriptParserOptions {
|
||||||
*/
|
*/
|
||||||
importMeta?: boolean;
|
importMeta?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable/disable evaluating import.meta.webpackContext.
|
||||||
|
*/
|
||||||
|
importMetaContext?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Include polyfills or mocks for various node stuff.
|
* Include polyfills or mocks for various node stuff.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue