-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add guards support in JavascriptParser
- Loading branch information
Showing
10 changed files
with
484 additions
and
75 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
lib/dependencies/HarmonyExportPresenceImportSpecifierDependency.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Ivan Kopeykin @vankop | ||
*/ | ||
|
||
"use strict"; | ||
|
||
const makeSerializable = require("../util/makeSerializable"); | ||
const HarmonyImportSpecifierDependency = require("./HarmonyImportSpecifierDependency"); | ||
const NullDependency = require("./NullDependency"); | ||
|
||
/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ | ||
/** @typedef {import("../ChunkGraph")} ChunkGraph */ | ||
/** @typedef {import("../Dependency")} Dependency */ | ||
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */ | ||
|
||
/** | ||
* Dependency just for export presence import specifier. | ||
*/ | ||
class HarmonyExportPresenceImportSpecifierDependency extends HarmonyImportSpecifierDependency {} | ||
|
||
makeSerializable( | ||
HarmonyExportPresenceImportSpecifierDependency, | ||
"webpack/lib/dependencies/HarmonyExportPresenceImportSpecifierDependency" | ||
); | ||
|
||
HarmonyExportPresenceImportSpecifierDependency.Template = | ||
/** @type {any} can not be casted to HarmonyImportSpecifierDependency.Template */ ( | ||
NullDependency.Template | ||
); | ||
|
||
module.exports = HarmonyExportPresenceImportSpecifierDependency; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.