123456789101112131415161718192021222324252627282930313233343536373839 |
- "use strict";
- class PlatformPlugin {
-
- constructor(platform) {
-
- this.platform = platform;
- }
-
- apply(compiler) {
- compiler.hooks.environment.tap("PlatformPlugin", () => {
- compiler.platform = {
- ...compiler.platform,
- ...this.platform
- };
- });
- }
- }
- module.exports = PlatformPlugin;
|