1234567891011121314151617181920 |
- module.exports = {
- entry: './src/index.js',
- output: {
- path: __dirname,
- filename: './dist/index.js',
- libraryTarget: 'commonjs2',
- library: 'react-attr'
- },
- module: {
- rules: [
- {
- test: /\.(js|jsx)$/,
- exclude: /node_modules/,
- use: {
- loader: 'babel-loader'
- }
- }
- ]
- }
- }
|