@macrostrat/cesium-martini 1.2.3 → 1.3.0

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/rollup.config.js CHANGED
@@ -12,12 +12,19 @@ const extensions = [".js", ".ts"];
12
12
 
13
13
  export default {
14
14
  input: "src/index.ts", // our source file
15
- output: {
16
- file: pkg.main,
17
- format: "cjs",
18
- sourcemap: true,
19
- exports: "auto",
20
- },
15
+ output: [
16
+ {
17
+ file: pkg.main,
18
+ format: "cjs",
19
+ sourcemap: true,
20
+ exports: "named",
21
+ },
22
+ {
23
+ file: pkg.module,
24
+ format: "esm",
25
+ sourcemap: true,
26
+ },
27
+ ],
21
28
  external: Object.keys(deps),
22
29
  plugins: [
23
30
  resolve({ extensions, module: true }),
package/tsconfig.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "moduleResolution": "node",
4
- "target": "es5",
5
- "module":"es2015",
6
- "lib": ["es2015", "es2016", "es2017", "dom"],
4
+ "target": "es2022",
5
+ "module":"es2022",
6
+ "lib": ["es2022", "dom"],
7
7
  "strict": false,
8
8
  "sourceMap": true,
9
9
  "declaration": true,
package/webpack.config.js DELETED
@@ -1,69 +0,0 @@
1
- const HtmlWebpackPlugin = require("html-webpack-plugin");
2
- const CopyPlugin = require("copy-webpack-plugin");
3
- const DotenvPlugin = require("dotenv-webpack");
4
- const { DefinePlugin } = require("webpack");
5
- const path = require("path");
6
-
7
- const cesiumSource = "node_modules/cesium/Source";
8
- const cesiumWorkers = "../Build/CesiumUnminified/Workers";
9
-
10
- module.exports = {
11
- // Enable sourcemaps for debugging webpack's output.
12
- devtool: "source-map",
13
- resolve: {
14
- extensions: [".ts", ".tsx", ".js"],
15
- alias: {
16
- // CesiumJS module name
17
- cesiumSource: path.resolve(__dirname, cesiumSource)
18
- }
19
- },
20
- module: {
21
- unknownContextCritical: false,
22
- rules: [
23
- {
24
- test: /\.ts(x?)$/,
25
- exclude: /node_modules/,
26
- use: ["babel-loader"]
27
- },
28
- {
29
- test: /\.(png|svg)$/,
30
- use: ["file-loader"]
31
- },
32
- { test: /\.css$/, use: ["style-loader", "css-loader"] },
33
- // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
34
- {
35
- enforce: "pre",
36
- test: /\.js$/,
37
- loader: "source-map-loader"
38
- },
39
- // https://github.com/CesiumGS/cesium/issues/9790#issuecomment-943773870
40
- {
41
- test: /.js$/,
42
- include: path.resolve(__dirname, 'node_modules/cesium/Source'),
43
- use: { loader: require.resolve('@open-wc/webpack-import-meta-loader') }
44
- },
45
- ]
46
- },
47
- node: {
48
- fs: "empty"
49
- },
50
- amd: {
51
- // Enable webpack-friendly use of require in Cesium
52
- toUrlUndefined: true
53
- },
54
- plugins: [
55
- new HtmlWebpackPlugin({ title: "Mapbox / Cesium Terrain" }),
56
- new CopyPlugin([
57
- { from: path.join(cesiumSource, cesiumWorkers), to: "Workers" }
58
- ]),
59
- new CopyPlugin([{ from: path.join(cesiumSource, "Assets"), to: "Assets" }]),
60
- new CopyPlugin([
61
- { from: path.join(cesiumSource, "Widgets"), to: "Widgets" }
62
- ]),
63
- new DotenvPlugin(),
64
- new DefinePlugin({
65
- // Define relative base path in cesium for loading assets
66
- CESIUM_BASE_URL: JSON.stringify("/")
67
- })
68
- ]
69
- };