-
-
Notifications
You must be signed in to change notification settings - Fork 831
Description
Summary
Hi, I'm making embedded project and all script should be bundled into a single file + some .node files (including node_modules bundling)
currently errors are in https://github.com/[email protected] for example
ERROR in ./node_modules/.pnpm/[email protected]/node_modules/node-gyp/lib/Find-VisualStudio.cs 9:6
Module parse failed: Unexpected token (9:6)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| // This script needs to be compatible with PowerShell v2 to run on Windows 2008R2 and
using System;
Can't resolve 'nock'
Can't resolve 'aws-sdk'
Can't resolve 'mock-aws-s3'
Can't resolve 'bluebird'
Can't resolve 'npm'
ERROR in ./node_modules/.pnpm/https://github.com/[email protected]/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
<!doctype html>
after installing pnpm i npm bluebird mock-aws-s3 aws-sdk nock --save-optional
permanent error occures like
./node_modules/.pnpm/[email protected]/node_modules/npm/node_modules/qrcode-terminal/lib/main.js
1 | var QRCode = require('./../vendor/QRCode'),
2 | QRErrorCorrectLevel = require('./../vendor/QRCode/QRErrorCorrectLevel'),
3 | black = "\033[40m \033[0m",
and many others...
In general I cannot bundle sqlite properly including node_modules
is there any ways?
Can I use compiled .node files for an sqlite?
repo https://github.com/Vector-Green/sqlite-node_modules_bundling
Proposed implementation
if there wouldn't be any runtime dependencies that would be possible to bundle all sqlite and it's node_modules into a single file