Skip to content

Instantly share code, notes, and snippets.

@jbenner-radham
Created July 30, 2022 22:50
Show Gist options
  • Select an option

  • Save jbenner-radham/377938446639d9c9f4e90ef501e97b06 to your computer and use it in GitHub Desktop.

Select an option

Save jbenner-radham/377938446639d9c9f4e90ef501e97b06 to your computer and use it in GitHub Desktop.
import * as path from 'path';
import * as webpack from 'webpack';
const config: webpack.Configuration = {
entry: './lib/index.ts',
mode: 'production',
module: {
rules: [
{
exclude: /node_modules/,
test: /\.ts$/,
use: {
loader: 'babel-loader',
options: {
rootMode: 'upward'
}
}
}
]
},
output: {
filename: 'index.bundle.js',
path: path.resolve(__dirname, 'dist')
},
resolve: {
alias: {
'@vcard/vcard4-meta': path.resolve(__dirname, '../vcard4-meta/dist')
},
extensions: ['.ts', '...']
}
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment