Files
connect/webpack.config.js
kyranjamie e2cdda53d6 fix: Spacing of new auth flow (#28)
* fix: Modal styling

* fix: Modal size, Closes blockstack-app/issues/82

* fix: Retune vertical rhythm

* fix: CheckList padding

* fix: Icon alignment

* fix: Use blue footer links in modal

* fix: Fix sign in page header, Fixes blockstack/blockstack-app#79

* refactor: Remove all use of <Stack>, avoid implicit margins

* fix: <Intro> component. Fixes blockstack/blockstack-app#73

* fix: Fixes blockstack/blockstack-app#84

* fix: How it works page

* fix: Remove Stack component from <Screen/>
2020-02-04 16:18:33 +01:00

46 lines
1.3 KiB
JavaScript

const path = require('path');
module.exports = {
entry: './src/index.ts',
module: {
rules: [
{
test: /\.(ts|tsx)?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
cacheDirectory: true,
babelrc: false,
presets: [
[
'@babel/preset-env',
{ targets: { browsers: 'last 2 versions' } }, // or whatever your project requires
],
'@babel/preset-typescript',
'@babel/preset-react',
],
plugins: [
// plugin-proposal-decorators is only needed if you're using experimental decorators in TypeScript
// ["@babel/plugin-proposal-decorators", { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
].filter(Boolean),
},
},
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
library: 'blockstackConnect',
libraryTarget: 'var',
},
};