2018-07-23 20:53:50 +08:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Florent Cailhol @ooflorent
|
|
|
|
*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/** @typedef {import("webpack-sources").Source} Source */
|
|
|
|
|
|
|
|
class InitFragment {
|
|
|
|
/**
|
|
|
|
* @param {string|Source} content [TODO]
|
2018-07-30 16:15:18 +08:00
|
|
|
* @param {number} stage [TODO]
|
2018-07-25 01:56:35 +08:00
|
|
|
* @param {number} priority [TODO]
|
2018-07-23 20:53:50 +08:00
|
|
|
* @param {string=} key [TODO]
|
|
|
|
*/
|
2018-07-30 16:15:18 +08:00
|
|
|
constructor(content, stage, priority, key) {
|
2018-07-23 20:53:50 +08:00
|
|
|
this.content = content;
|
2018-07-30 16:15:18 +08:00
|
|
|
this.stage = stage;
|
2018-07-25 01:56:35 +08:00
|
|
|
this.priority = priority;
|
2018-07-23 20:53:50 +08:00
|
|
|
this.key = key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-30 16:15:18 +08:00
|
|
|
InitFragment.STAGE_CONSTANTS = 10;
|
|
|
|
InitFragment.STAGE_HARMONY_EXPORTS = 20;
|
|
|
|
InitFragment.STAGE_HARMONY_IMPORTS = 30;
|
|
|
|
InitFragment.STAGE_PROVIDES = 40;
|
|
|
|
|
2018-07-23 20:53:50 +08:00
|
|
|
module.exports = InitFragment;
|