react-native-macos/android-patches/webpack.config.js

31 строка
583 B
JavaScript
Исходник Обычный вид История

Moving the android specific changes to patch files and reverting them… (#254) * Moving the android specific changes to patch files and reverting them from the repo. * Apply patches immediately after cloning * Fixing the webpack config for the bundle to run correctly * Removing an unwanted hunk from folly makefile hwich might be causing a build failure * Reverting src/main/jni/third-party/folly/Android.mk hoping for the best. If this doesn't work then will look deeper * Fixing the patch scripts * Fixing a patch file with integrity failure.. and tightening the error handling. * Adding more diagnostics * More diagnostics * Fixing line splitting of patch and source files while patching * Cleaning up the diagnostics.. Patching should work this time. * Reverting the change needed for MAC/iOS * More diagnostics printed out .. * Fixing MAC/iOS build * yarn test -u * Update .eslintignore Update .eslintignore to ignore patching code and patch files. * Fixing a couple of linking errors in JS' * Adding prettierignore and making some fixes to the patches * More fixes to the path * Making required changes in Apple PR/Publish build pipelines to valiate/publish patched as well as unpatched code * A fix in the patch application condition * More fixes in the patch application condition * Another attempt to fix the patching condition * Yet Another attempt to fix the patching condition * Yet Another attempt to fix the patching condition.. forcing the parameter to be strings * Yet Another attempt to fix the patching condition.. forcing the parameter to be strings * Making patches work on non-windows.. and more fixes for the condition in yaml * Diagnostics for debugging conditions * Diagnostics for debugging conditions 2 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Diagnostics for debugging conditions 3 * Workaround * Workaround * Workaround * Workaround * Fixing Apple build failure with patch applied .. * Refactoring the patch application to template * Fixing the template file relative URL when referenced from another template * Fixing a mistake introduced while refactoring the patch creating steps. * Fixing some formatting * Fixing some formatting Co-authored-by: Anandraj <anandrag@microsoft.com>
2020-03-19 04:20:08 +03:00
const path = require('path');
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './src/index.ts',
devtool: 'source-map',
target: 'node',
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'bundle'),
},
// externals: [nodeExternals()],
// node: {
// global: true,
// __filename: false,
// __dirname: false,
// },
};