build-dxf 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -13214,7 +13214,11 @@ class Dxf extends Component {
|
|
|
13214
13214
|
a.download = filename + ".dxf";
|
|
13215
13215
|
a.click();
|
|
13216
13216
|
} else if (typeof global !== "undefined") {
|
|
13217
|
-
const
|
|
13217
|
+
const packageName = "fs";
|
|
13218
|
+
const { default: fs } = await import(
|
|
13219
|
+
/* @vite-ignore */
|
|
13220
|
+
packageName
|
|
13221
|
+
);
|
|
13218
13222
|
fs.writeFileSync(path + "/" + filename, this.toDxfString());
|
|
13219
13223
|
}
|
|
13220
13224
|
}
|