mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
37 lines
660 B
JavaScript
37 lines
660 B
JavaScript
const path = require('path');
|
|
|
|
const jsxInjectionPATH = 'PACKAGE/lib/jsxInjection';
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
devtool: 'cheap-module-eval-source-map',
|
|
entry: './example/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, './dist'),
|
|
publicPath: '/dist/',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
[jsxInjectionPATH]: path.resolve(
|
|
__dirname,
|
|
'./lib/jsxInjection',
|
|
),
|
|
},
|
|
},
|
|
devServer: {
|
|
inline: true,
|
|
open: true,
|
|
hot: true,
|
|
overlay: true,
|
|
},
|
|
};
|