Skip to content

Commit 9e4d9d4

Browse files
committed
fix regl_codegen
1 parent 0c724cf commit 9e4d9d4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

devtools/regl_codegen/server.mjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ var reglTraceList = [
2020
'splom'
2121
];
2222

23-
var devtoolsPath = path.join(constants.pathToRoot, 'devtools/regl_codegen');
24-
config.entryPoints = [path.join(devtoolsPath, 'devtools.js')];
25-
config.outfile = './build/regl_codegen-bundle.js';
26-
config.sourcemap = false;
27-
config.minify = false;
28-
await build(config);
23+
2924

3025
// Create server
3126
var _static = ecstatic({
@@ -71,12 +66,20 @@ server.listen(PORT);
7166
open('http://localhost:' + PORT + '/devtools/regl_codegen/index' + (strict ? '-strict' : '') + '.html');
7267

7368
// Build and bundle all the things!
74-
getMockFiles()
69+
await getMockFiles()
7570
.then(readFiles)
7671
.then(createMocksList)
7772
.then(saveMockListToFile)
7873
.then(saveReglTracesToFile.bind(null, reglTraceList));
7974

75+
76+
var devtoolsPath = path.join(constants.pathToRoot, 'devtools/regl_codegen');
77+
config.entryPoints = [path.join(devtoolsPath, 'devtools.js')];
78+
config.outfile = './build/regl_codegen-bundle.js';
79+
config.sourcemap = false;
80+
config.minify = false;
81+
await build(config);
82+
8083
function getMockFiles() {
8184
return new Promise(function(resolve, reject) {
8285
fs.readdir(constants.pathToTestImageMocks, function(err, files) {

0 commit comments

Comments
 (0)