Install:
npm install fuse-box --save-dev
import { fusebox } from 'fuse-box';
fusebox({
target: 'browser',
entry: 'src/index.tsx',
webIndex: {
template: 'src/index.html',
},
devServer: true,
}).runDev();
Get started creating npm package with FuseBox module loader and bundler
License: MIT License
Install:
npm install fuse-box --save-dev
import { fusebox } from 'fuse-box';
fusebox({
target: 'browser',
entry: 'src/index.tsx',
webIndex: {
template: 'src/index.html',
},
devServer: true,
}).runDev();
This is a continuation of this issue, fuse-box essentially breaks on 6.3.1.
custom = util.inspect.defaultOptions.customInspect
^
TypeError: Cannot read property 'customInspect' of undefined
at Object.<anonymous> (/Users/joshua/Projects/plantguard/client/node_modules/fliplog/modules/inspector-gadget/index.js:9:39)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/joshua/Projects/plantguard/client/node_modules/fliplog/plugins/inspect.js:1:75)
at Module._compile (module.js:541:32)
^
TypeError: Cannot read property 'customInspect' of undefined
at Object. (..\fuse-box-npm-package-seed\node_modules\fuse-box\node_modules\fliplog\modules\inspector-gadget\index.js:9:39)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object. (..\fuse-box-npm-package-seed\node_modules\fuse-box\node_modules\fliplog\plugins\inspect.js:1:75)
at Module._compile (module.js:541:32)
In the README, it says
.instructions("> index.ts")
Notice the > arithmatic symbol above? it is important to make fuse expose your exports.
Isn't that going to duplicate all the dependencies inside the package ?
So if your application and one of your dependency is using lodash
, it's going to be included twice in your project since your dependency was built by Fusebox?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.