Files
standardnotes-app-web/packages/blocks-editor/blocks.webpack.config.js
2022-11-07 10:42:44 -06:00

33 lines
654 B
JavaScript

const path = require('path')
module.exports = () => {
return {
entry: './src/index.ts',
output: {
filename: './dist.js',
},
mode: 'production',
resolve: {
extensions: ['.ts', '.tsx', '.js'],
},
externals: {
"@standardnotes/icons": path.resolve(__dirname, "./node_modules/@standardnotes/icons")
},
module: {
rules: [
{
test: /\.(js|tsx?)$/,
use: [
'babel-loader',
{
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
],
},
],
},
}
}