We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ed17dd commit b085e22Copy full SHA for b085e22
1 file changed
webpack.config.js
@@ -1,18 +1,27 @@
1
const { DefinePlugin } = require('webpack');
2
const { spawnSync } = require('child_process');
3
+const path = require('path');
4
5
module.exports = (env, argv) => ({
6
entry: './src/components/main.tsx',
7
module: {
8
rules: [
9
{
- test: /\.js$/,
10
- include: /node_modules\/undici/,
+ test: /\.m?js$/,
11
+ include: [
12
+ path.resolve(__dirname, 'node_modules/undici'),
13
+ path.resolve(__dirname, 'node_modules/@distube')
14
+ ],
15
use: {
16
loader: 'babel-loader',
17
options: {
18
presets: [
- ['@babel/preset-env', { targets: { node: 'current' } }]
19
+ ['@babel/preset-env', {
20
+ targets: {
21
+ node: 'current',
22
+ browsers: ['last 2 versions']
23
+ }
24
+ }]
25
],
26
plugins: [
27
'@babel/plugin-proposal-class-properties',
0 commit comments