Skip to content

Commit

Permalink
removed caching and switched to unbundled engine version
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed May 29, 2024
1 parent 429ff25 commit c7306ce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { copyAndWatch } from "./plugins/copy-and-watch.mjs";
const BUILD_TYPE = process.env.BUILD_TYPE || 'release';
const ENGINE_DIR = process.env.ENGINE_PATH || 'node_modules/playcanvas';

const ENGINE_NAME = (BUILD_TYPE === 'debug') ? 'playcanvas.dbg.mjs' : 'playcanvas.mjs';
const ENGINE_NAME = (BUILD_TYPE === 'debug') ? 'playcanvas.dbg/src/index.js' : 'playcanvas/src/index.js';
const ENGINE_PATH = path.resolve(ENGINE_DIR, 'build', ENGINE_NAME);

const BLUE_OUT = '\x1b[34m';
Expand Down Expand Up @@ -53,7 +53,7 @@ export default {
format: 'esm',
sourcemap: true
},
// perf: true,
treeshake: 'smallest',
plugins: [
copyAndWatch(TARGETS),
replace({
Expand Down Expand Up @@ -86,7 +86,5 @@ export default {
}),
json(),
(BUILD_TYPE !== 'debug') && terser()
],
treeshake: 'smallest',
cache: false
]
};

0 comments on commit c7306ce

Please sign in to comment.