storybook/scripts/utils/watch-babel.js
2020-12-15 17:59:01 +08:00

13 lines
287 B
JavaScript

const path = require('path');
const { babelify } = require('./compile-babel');
const modulePath = path.resolve('./');
babelify({
modules: true,
silent: false,
watch: true,
// eslint-disable-next-line no-console
errorCallback: () => console.error('Failed to compile js'),
});