Skip to content

Commit

Permalink
Updates esm boilerplate (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklundin authored Apr 12, 2024
1 parent bdd45a0 commit 4cb88f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@playcanvas/editor-api",
"version": "1.0.29",
"version": "1.0.31",
"author": "PlayCanvas <[email protected]>",
"homepage": "https://github.com/playcanvas/editor-api#readme",
"description": "The PlayCanvas Editor API",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/createScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ ${className}.prototype.update = function(dt) {

function createEsmBoilerplate(className, scriptName) {
return `
export class ${className} extends pc.ScriptType {
import { Script } from 'playcanvas';
static name = '${scriptName}';
export class ${className} extends Script {
initialize() {
Expand Down

0 comments on commit 4cb88f7

Please sign in to comment.