mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-01-08 21:51:55 -05:00
3785f7070e
CSS isn't loaded and it takes a LONG time to compile, but it does load the GUI. It also requires using `npm ln` for `scratch-gui`.
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
loader: 'babel-loader',
|
|
// include: [path.resolve(__dirname, 'src', 'renderer'), /node_modules[\\/]scratch-[^\\/]+[\\/]src/],
|
|
options: {
|
|
// Explicitly disable babelrc so we don't catch various config
|
|
// in much lower dependencies.
|
|
babelrc: false,
|
|
plugins: [
|
|
'@babel/proposal-object-rest-spread'
|
|
// 'syntax-dynamic-import',
|
|
// 'transform-async-to-generator',
|
|
// 'transform-object-rest-spread',
|
|
// ['react-intl', {
|
|
// messagesDir: './translations/messages/'
|
|
// }]
|
|
],
|
|
presets: [
|
|
// ['env', {targets: {electron: '2.0.7'}}],
|
|
'@babel/react'
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|