Skip to content

Commit

Permalink
Use cc for the name while registering engine entry module (#62)
Browse files Browse the repository at this point in the history
* Use cc for the name while registering engine entry module

* Update version to 2.2.9
  • Loading branch information
dumganhar authored Mar 6, 2024
1 parent 3cdfaa6 commit 85c18b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import babel = Transformer.core;

import { rollup as Bundler } from '@ccbuild/bundler';
import rollup = Bundler.core;
import ps from 'path';

interface Options {
name: string;
Expand Down Expand Up @@ -33,6 +34,9 @@ function toNamedRegister(
}

function getChunkUrl(chunk: rollup.RenderedChunk): string {
if (ps.basename(chunk.fileName, '.js') === 'cc') {
return 'cc';
}
return `cocos-js/${chunk.fileName}`;
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cocos/ccbuild",
"version": "2.2.8",
"version": "2.2.9",
"description": "The next generation of build tool for Cocos engine.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit 85c18b8

Please sign in to comment.