Comments (4)
Could also use / take inspiration from https://www.npmjs.com/package/node-native-loader
from ncc.
Completed in #93 and #85. If any new scenarios come up, please post a new issue.
from ncc.
node-canvas
requires the .node
file directly without a helper module, so we should support that use-case as well:
from ncc.
tried ncc on one of our APIs with Newrelic on it - failed due to "node-gyp"
see logs on Node v8.12.0
ʎ ncc build app.js
ncc: Module directory "/Users/xir/Workspace/epic-nodejs-api/node_modules/@newrelic/native-metrics/lib" attempted to require "npm" but could not be resolved, assuming external.
ncc: Module directory "/Users/xir/Workspace/epic-nodejs-api/node_modules/@newrelic/native-metrics/lib" attempted to require "node-gyp" but could not be resolved, assuming external.
Error: Hash: 763418c0e21c6da9c96a
Version: webpack 4.26.0
Time: 5977ms
Built at: 2018-11-28 16:04:05
Asset Size Chunks Chunk Names
out.js 6.63 MiB 0 main
Entrypoint main = out.js
[8] external "path" 42 bytes {0} [built]
[10] external "fs" 42 bytes {0} [built]
[25] ./config/config.js 15.6 KiB {0} [built]
[33] external "os" 42 bytes {0} [built]
[61] ./utils/logger.js 1.34 KiB {0} [built]
[96] ./node_modules/express/index.js 224 bytes {0} [built]
[97] ./node_modules/cors/lib/index.js 6.34 KiB {0} [built]
[100] ./node_modules/winston/lib/winston.js 4.12 KiB {0} [built]
[126] ./utils/logglyClient.js 2.08 KiB {0} [built]
[199] external "cluster" 42 bytes {0} [built]
[462] ./app.js 980 bytes {0} [built]
[487] ./node_modules/winston-loggly/lib/winston-loggly.js 7.42 KiB {0} [built]
[580] ./main.js 1.39 KiB {0} [built]
[581] ./node_modules/newrelic/index.js 5.54 KiB {0} [built]
[905] ./node_modules/helmet/index.js 1.17 KiB {0} [built]
+ 1008 hidden modules
from ncc.
Related Issues (20)
- ESM + Relative imports without .js extension causes "ReferenceError: require is not defined in ES module scope" HOT 3
- ncc is unable to import third party modules via "import". Cannot read properties of undefined HOT 1
- How to include only internal monorepo packages / dependencies? HOT 3
- Incorrect Compilation of Firebase Parameterized Variables by ncc HOT 1
- ncc build fails with bun when node isn't installed
- NCC build fails when compiling a Custom Server NextJS app - ./static.edge is not exported from react-dom HOT 3
- bug TypeError: Cannot read property 'set' of undefined
- Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set. HOT 1
- BUG: Fails to bundle `[email protected]` HOT 1
- How compatible are paths that need to be dynamically loaded at ncc build time HOT 2
- Cannot bundle `@npmcli/arborist` HOT 3
- ESM mode still uses "require" within an ESM module HOT 6
- Java
- Confusing error message "Package path . is not exported from package" HOT 2
- Are there multiple js files in the directory packaged by NCC? HOT 2
- vercel/ncc
- Advantages over other bundlers HOT 4
- more documentation about `--v8-cache`
- ncc and prebuildify HOT 3
- TypeError when resolving symlinked module paths in a Lerna workspace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncc.