// Copyright 2023 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import assert from "assert"; import * as path from "path"; import * as fs from "fs"; import { fileURLToPath } from "url"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const fileNames = [ "angular-material-20.1.6.css", "backbone-1.6.1.js", "bootstrap-5.3.7.css", "foundation-6.9.0.css", "jquery-3.7.1.js", "lodash.core-4.17.21.js", "lodash-4.17.4.min.js.map", "mootools-core-1.6.0.js", "preact-8.2.5.js", "preact-10.27.1.min.module.js.map", "redux-5.0.1.min.js", "redux-5.0.1.esm.js", "source-map.min-0.5.7.js.map", "source-map/lib/mappings.wasm", "speedometer-es2015-test-2.0.js", "todomvc/react/app.jsx", "todomvc/react/footer.jsx", "todomvc/react/todoItem.jsx", "todomvc/typescript-angular.ts", "underscore-1.13.7.js", "underscore-1.13.7.min.js.map", "vue-3.5.18.runtime.esm-browser.js", ]; const thirdPartyDir = path.resolve(__dirname, "..", "..", "third_party"); const fileData = {}; for (const name of fileNames) { const fileContents = fs.readFileSync(path.join(thirdPartyDir, name), "utf8"); assert(fileContents.length > 0); fileData[name] = fileContents; } export default fileData;