mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-12 18:49:21 +00:00
@ -18,6 +18,19 @@ module.exports = {
|
||||
});
|
||||
newConfig.resolve.extensions.push('.ts', '.tsx');
|
||||
|
||||
// JavaScript
|
||||
newConfig.module.rules.push({
|
||||
test: /\.(js|jsx)$/,
|
||||
// include: [path.resolve(__dirname, '../src/client/components')],
|
||||
use: [{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env', '@babel/preset-react']
|
||||
}
|
||||
}]
|
||||
});
|
||||
newConfig.resolve.extensions.push('.js', '.jsx');
|
||||
|
||||
// Stylus
|
||||
newConfig.module.rules.push({
|
||||
test: /\.styl$/,
|
||||
|
Reference in New Issue
Block a user