dolphins7.skeleton/client/webpack.common.js
0x1eef 2e8cf6e333 Drop 'twenty-' prefix from toplevel directories
The directories twenty-{server,client,cli} have been renamed to
not include 'twenty-'. The gems are still published with the twenty-
prefix, otherwise a collision is impossible to avoid. This commit makes
it slightly easier to generalize twenty.
2024-04-21 20:11:25 -03:00

25 lines
412 B
JavaScript

const webpack = require('webpack');
const path = require('path');
module.exports = {
resolve: {
alias: {
'~': [path.resolve('src/js')]
},
extensions: ['.ts', '.tsx']
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
plugins: [
new webpack.ProvidePlugin({
React: 'react',
}),
],
}