From cd8cf428575f3ce6aab0fa477161eb9e867c3890 Mon Sep 17 00:00:00 2001 From: kpal Date: Mon, 11 Nov 2024 18:07:09 +0000 Subject: [PATCH] Renamed esm scripts to end with mjs --- examples/src/examples/camera/multi.example.mjs | 2 +- scripts/camera/{base-camera.js => base-camera.mjs} | 0 scripts/camera/{multi-camera.js => multi-camera.mjs} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename scripts/camera/{base-camera.js => base-camera.mjs} (100%) rename scripts/camera/{multi-camera.js => multi-camera.mjs} (99%) diff --git a/examples/src/examples/camera/multi.example.mjs b/examples/src/examples/camera/multi.example.mjs index 17a5e7985b2..f81a4a4d37f 100644 --- a/examples/src/examples/camera/multi.example.mjs +++ b/examples/src/examples/camera/multi.example.mjs @@ -4,7 +4,7 @@ import * as pc from 'playcanvas'; import { data } from 'examples/observer'; import { deviceType, rootPath, fileImport } from 'examples/utils'; -const { MultiCamera } = await fileImport(rootPath + '/static/scripts/camera/multi-camera.js'); +const { MultiCamera } = await fileImport(rootPath + '/static/scripts/camera/multi-camera.mjs'); const canvas = document.getElementById('application-canvas'); if (!(canvas instanceof HTMLCanvasElement)) { diff --git a/scripts/camera/base-camera.js b/scripts/camera/base-camera.mjs similarity index 100% rename from scripts/camera/base-camera.js rename to scripts/camera/base-camera.mjs diff --git a/scripts/camera/multi-camera.js b/scripts/camera/multi-camera.mjs similarity index 99% rename from scripts/camera/multi-camera.js rename to scripts/camera/multi-camera.mjs index f722e842686..775ee5a444a 100644 --- a/scripts/camera/multi-camera.js +++ b/scripts/camera/multi-camera.mjs @@ -1,6 +1,6 @@ import { Vec2, Vec3, Ray, Plane, math } from 'playcanvas'; -import { BaseCamera } from './base-camera.js'; +import { BaseCamera } from './base-camera.mjs'; /** @import { CameraComponent } from 'playcanvas' */