Skip to content

Commit 07f2f74

Browse files
authored
Fix ocular size reporting (#406)
1 parent 366c340 commit 07f2f74

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

babel.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const getBabelConfig = require('ocular-dev-tools/config/babel.config');
1616
module.exports = api => {
1717
const config = getBabelConfig(api);
1818

19+
config.presets = config.presets || [];
20+
1921
config.presets.push('@babel/react', '@babel/flow');
2022

2123
config.plugins = config.plugins || [];

ocular-dev-tools.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333

3434
entry: {
3535
test: 'test/index.js',
36-
'test-browser': 'test/browser.js'
36+
'test-browser': 'test/browser.js',
37+
size: 'test/size/import-nothing.js'
3738
}
3839
};

test/size/import-nothing.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import {LogViewer} from 'streetscape.gl';
2+
3+
console.log(LogViewer); // eslint-disable-line

0 commit comments

Comments
 (0)