mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-14 07:29:17 +08:00
43 lines
810 B
JavaScript
43 lines
810 B
JavaScript
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
devtool: false,
|
|
context: path.join(__dirname, '../packages/jsx-explorer'),
|
|
entry: './src/index.ts',
|
|
output: {
|
|
publicPath: './',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
options: {
|
|
compilerOptions: { downlevelIteration: true },
|
|
},
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
'style-loader', 'css-loader',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: 'index.html',
|
|
filename: 'index.html',
|
|
}),
|
|
],
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
node: {
|
|
fs: 'empty',
|
|
},
|
|
};
|