UNPKG

@create-figma-plugin/build

Version:

Build a Figma/FigJam plugin/widget

9 lines 386 B
import { platform } from 'node:os'; import { pathToFileURL } from 'node:url'; const isWindows = platform() === 'win32'; export function importFresh(filePath) { const normalizedFilePath = isWindows === true ? pathToFileURL(filePath).href : filePath; const timestamp = Date.now(); return import(`${normalizedFilePath}?${timestamp}`); } //# sourceMappingURL=import-fresh.js.map