Is there a way to configure haul to skip bundling
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 185
- PR merge metrics
- No merged PRs in 30d
Description
I would like to use haul as a server but don't want it to bundle my files, largely because I am running into some very cryptic errors (_Module not found: Error: Can't resolve 'AccessibilityInfo' in 'D:\Excel-Custom-Functions\node_modules\react-native\Libraries\react-native'_) during the bundling process. Rather than try to endlessly figure out what's causing these errors, I can just build the bundle with webpack, which works like a charm.
I was wondering if there's a way to configure Haul so it just serves up and existing bundle but skips the bundling portion.
Here's my current haul.config.js file that I can point to when starting haul (haul start --config haul.config.js):
const path = require('path');
module.exports = {
entry: './src/customfunctions.ts',
output: {
path: path.resolve(__dirname, 'dist/win32/ship'),
filename: 'index.win32.bundle'
},
resolve: {
extensions: ['.ts', '.tsx', '.html', '.js', 'json']
},
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: 'ts-loader'
},
{
test: /\.html$/,
exclude: /node_modules/,
use: 'html-loader'
},
{
test: /\.(png|jpg|jpeg|gif)$/,
use: 'file-loader'
}
]
},
devServer: {
port: 8081,
hot: false,
publicPath: 'http://localhost:8081/dist/win32/ship',
inline: true,
headers: {
"Access-Control-Allow-Origin": "*"
}
}
};
Any help would be greatly appreciated,
Thanks,
Courtney
Contributor guide
Assessment
This issue has not been assessed yet.