Fix build

This commit is contained in:
Nathan Bierema 2021-08-24 21:15:01 -04:00
parent 3415f57757
commit 621d45e085

View File

@ -3,7 +3,7 @@ import webpack from 'webpack';
import CopyPlugin from 'copy-webpack-plugin'; import CopyPlugin from 'copy-webpack-plugin';
const extpath = path.join(__dirname, '../src/browser/extension/'); const extpath = path.join(__dirname, '../src/browser/extension/');
const mock = `${extpath}chromeAPIMock.js`; const mock = `${extpath}chromeAPIMock`;
const baseConfig = (params) => ({ const baseConfig = (params) => ({
// devtool: 'source-map', // devtool: 'source-map',
@ -64,7 +64,7 @@ const baseConfig = (params) => ({
app: path.join(__dirname, '../src/app'), app: path.join(__dirname, '../src/app'),
tmp: path.join(__dirname, '../build/tmp'), tmp: path.join(__dirname, '../build/tmp'),
}, },
extensions: ['.js'], extensions: ['.js', '.jsx', '.ts', '.tsx'],
}, },
module: { module: {
rules: [ rules: [
@ -72,7 +72,7 @@ const baseConfig = (params) => ({
? params.loaders ? params.loaders
: [ : [
{ {
test: /\.js$/, test: /\.(js|ts)x?$/,
use: 'babel-loader', use: 'babel-loader',
exclude: /(node_modules|tmp\/page\.bundle)/, exclude: /(node_modules|tmp\/page\.bundle)/,
}, },