Options
All
  • Public
  • Public/Protected
  • All
Menu

Parser options for javascript modules.

Hierarchy

  • JavascriptParserOptions

Indexable

[index: string]: any

Index

Properties

amd?: false | {}

Set the value of require.amd and define.amd. Or disable AMD support.

browserify?: boolean

Enable/disable special handling for browserify bundles.

commonjs?: boolean

Enable/disable parsing of CommonJs syntax.

commonjsMagicComments?: boolean

Enable/disable parsing of magic comments in CommonJs syntax.

createRequire?: string | boolean

Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().

dynamicImportFetchPriority?: false | "auto" | "low" | "high"

Specifies global fetchPriority for dynamic import.

dynamicImportMode?: "weak" | "eager" | "lazy" | "lazy-once"

Specifies global mode for dynamic import.

dynamicImportPrefetch?: number | boolean

Specifies global prefetch for dynamic import.

dynamicImportPreload?: number | boolean

Specifies global preload for dynamic import.

exportsPresence?: false | "auto" | "error" | "warn"

Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".

exprContextCritical?: boolean

Enable warnings for full dynamic dependencies.

exprContextRecursive?: boolean

Enable recursive directory lookup for full dynamic dependencies.

exprContextRegExp?: boolean | RegExp

Sets the default regular expression for full dynamic dependencies.

exprContextRequest?: string

Set the default request for full dynamic dependencies.

harmony?: boolean

Enable/disable parsing of EcmaScript Modules syntax.

import?: boolean

Enable/disable parsing of import() syntax.

importExportsPresence?: false | "auto" | "error" | "warn"

Specifies the behavior of invalid export names in "import ... from ...".

importMeta?: boolean

Enable/disable evaluating import.meta.

importMetaContext?: boolean

Enable/disable evaluating import.meta.webpackContext.

node?: false | NodeOptions

Include polyfills or mocks for various node stuff.

reexportExportsPresence?: false | "auto" | "error" | "warn"

Specifies the behavior of invalid export names in "export ... from ...". This might be useful to disable during the migration from "export ... from ..." to "export type ... from ..." when reexporting types in TypeScript.

requireContext?: boolean

Enable/disable parsing of require.context syntax.

requireEnsure?: boolean

Enable/disable parsing of require.ensure syntax.

requireInclude?: boolean

Enable/disable parsing of require.include syntax.

requireJs?: boolean

Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.

strictExportPresence?: boolean

Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.

strictThisContextOnImports?: boolean

Handle the this context correctly according to the spec for namespace objects.

system?: boolean

Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.

unknownContextCritical?: boolean

Enable warnings when using the require function in a not statically analyse-able way.

unknownContextRecursive?: boolean

Enable recursive directory lookup when using the require function in a not statically analyse-able way.

unknownContextRegExp?: boolean | RegExp

Sets the regular expression when using the require function in a not statically analyse-able way.

unknownContextRequest?: string

Sets the request when using the require function in a not statically analyse-able way.

url?: boolean | "relative"

Enable/disable parsing of new URL() syntax.

worker?: boolean | string[]

Disable or configure parsing of WebWorker syntax like new Worker() or navigator.serviceWorker.register().

wrappedContextCritical?: boolean

Enable warnings for partial dynamic dependencies.

wrappedContextRecursive?: boolean

Enable recursive directory lookup for partial dynamic dependencies.

wrappedContextRegExp?: RegExp

Set the inner regular expression for partial dynamic dependencies.