storybook/scripts/utils/watch-babel.js

13 lines
287 B
JavaScript
Raw Normal View History

const path = require('path');
const { babelify } = require('./compile-babel');
const modulePath = path.resolve('./');
2018-01-28 19:09:40 +02:00
babelify({
2020-12-15 17:59:01 +08:00
modules: true,
2018-01-28 19:09:40 +02:00
silent: false,
watch: true,
2018-01-28 19:09:40 +02:00
// eslint-disable-next-line no-console
errorCallback: () => console.error('Failed to compile js'),
});