Skip to content

Commit

Permalink
fix windows import for real this time, fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Jan 27, 2025
1 parent bb67bf4 commit 0994f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unframer/src/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,9 @@ export async function extractPropControlsUnsafe(
let propCode = `JSON.stringify({propertyControls: x.default?.propertyControls, fonts: x?.default?.fonts } || {}, null, 2)`

const fileUrl = url.pathToFileURL(filename).href
const code = `import("${url.fileURLToPath(
fileUrl,
)}").then(x => { console.log("${delimiter}"); console.log(${propCode}) })`
const code = `import("${url
.pathToFileURL(fileUrl)
.toString()}").then(x => { console.log("${delimiter}"); console.log(${propCode}) })`

const TIMEOUT = 5 * 1000
const UNFRAMER_MAP_PACKAGES = JSON.stringify({
Expand Down

0 comments on commit 0994f6d

Please sign in to comment.