drone_view 3.0.59 → 3.0.61

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
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "drone_view",
3
- "version": "3.0.59",
3
+ "version": "3.0.61",
4
4
  "main": "dist/droneView.js",
5
+ "module": "dist/droneView.js",
6
+ "types": "build/typings/droneView.d.ts",
7
+ "exports": {
8
+ "import": "./dist/droneView.js",
9
+ "require": "./dist/droneView.js"
10
+ },
5
11
  "license": "MIT",
6
12
  "scripts": {
7
13
  "build": "tsc",
@@ -7,9 +7,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
7
7
  const cesiumUnmin = path.resolve(__dirname, "node_modules/cesium/Build/CesiumUnminified");
8
8
 
9
9
  module.exports = {
10
- entry: {
11
- main: "./src/droneView.ts",
12
- },
10
+ entry: "./src/droneView.ts",
13
11
 
14
12
  stats: {
15
13
  children: true,
@@ -24,7 +22,7 @@ module.exports = {
24
22
  output: {
25
23
  filename: "droneView.js",
26
24
  path: path.resolve(__dirname, "dist"),
27
- // Export as an ES module for dynamic import
25
+ module: true, // Key for ESM output
28
26
  library: {
29
27
  type: "module",
30
28
  },