From 87cd841982387a8b1181a59b9b4874189edcaf38 Mon Sep 17 00:00:00 2001 From: hanyd Date: Mon, 9 Dec 2024 13:06:32 +0800 Subject: [PATCH] move document and utils together --- src/{ => document}/document.ts | 6 +++--- webpack/webpack.common.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/{ => document}/document.ts (94%) diff --git a/src/document.ts b/src/document/document.ts similarity index 94% rename from src/document.ts rename to src/document/document.ts index 599990a8..6a510f5f 100644 --- a/src/document.ts +++ b/src/document/document.ts @@ -1,6 +1,6 @@ -import { getFrameRate, PlayInfo } from "./document/frameRateUtils"; -import { DataCache } from "./utils/cache"; -import { InjectedScriptMessageSend, sourceId } from "./utils/injectedScriptMessageUtils"; +import { DataCache } from "../utils/cache"; +import { InjectedScriptMessageSend, sourceId } from "../utils/injectedScriptMessageUtils"; +import { PlayInfo, getFrameRate } from "./frameRateUtils"; const playInfoCache = new DataCache(() => []); diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index e693b99c..795fb868 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -30,7 +30,7 @@ const edgeLanguages = [ module.exports = env => { const documentScriptBuild = webpack({ entry: { - document: path.join(__dirname, srcDir + 'document.ts') + document: path.join(__dirname, srcDir + 'document/document.ts') }, output: { path: path.join(__dirname, '../dist/js'),