Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

67 lines
1.1 KiB

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require("assert"));
_assert = function () {
return data;
};
return data;
}
function _plugin() {
const data = require("@parcel/plugin");
_plugin = function () {
return data;
};
return data;
}
function _utils() {
const data = require("@parcel/utils");
_utils = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = new (_plugin().Packager)({
async package({
bundle,
bundleGraph
}) {
let assets = [];
bundle.traverseAssets(asset => {
assets.push(asset);
});
_assert().default.equal(assets.length, 1, 'Raw bundles must only contain one asset');
let {
contents
} = (0, _utils().replaceURLReferences)({
bundle,
bundleGraph,
contents: await assets[0].getCode(),
relative: false
});
return {
contents
};
}
});
exports.default = _default;