Fuse Box Github

broken image


Monorepo Setup Synopsis. The following are explained in detail further down the page. Set homeDir field to the root of your repository, and entry field to your main project file. Ftp file transfer software free download. Add/set up tsconfig.json with paths and baseUrl fields. FuseBox pulls these values from tsconfig.json as part of its own configuration (even if there is no TypeScript involved). Every other package you include from. React demo Open Collective. FuseBox contributors do this open source work in their free time. If you feel that using FuseBox increases your productivity and you'd like us to invest more time in it, please back us up. GitHub Gist: star and fork fanyang89's gists by creating an account on GitHub. Example fuse-box config with code splitting View fuse.ts. Regardless of the output (esnext or es5) module resolution must be set to commonjs. It's not because FuseBox cannot handle imports it's because FuseBox mimics require statements in development (that's why FuseBox is so fast - it's not altering the code). As FuseBox is tightly coupled with TypeScript, there are a few tricks you can apply to make your life easier.

fuse-vs-webpack.txt
> ~/s/try-fuse-box time yarn webpack 13:41:34
yarn webpack v0.21.3
$ '/Users/mz/sandbox/try-fuse-box/node_modules/.bin/webpack'
Hash: ba44e4dd8f7c8cac667e
Version: webpack 2.4.1
Time: 1309ms
Asset Size Chunks Chunk Names
bundle.js 740 kB 0 [emitted] [big] js
[0] ./~/process/browser.js 5.3 kB {0} [built]
[15] ./~/react/lib/ReactElement.js 11.2 kB {0} [built]
[18] ./~/react-dom/lib/ReactReconciler.js 6.21 kB {0} [built]
[19] ./~/react/lib/React.js 3.32 kB {0} [built]
[31] ./~/react/lib/canDefineProperty.js 661 bytes {0} [built]
[81] ./~/fuse-box/modules/fuse-hmr/index.js 2.11 kB {0} [built]
[82] ./~/react-dom/index.js 59 bytes {0} [built]
[83] ./~/react/react.js 56 bytes {0} [built]
[84] ./src/index.js 859 bytes {0} [built]
[99] ./~/fuse-box/modules/fuse-loader/index.js 203 bytes {0} [built]
[115] ./~/react-dom/lib/ReactDOM.js 5.14 kB {0} [built]
[176] ./~/react/lib/ReactDOMFactories.js 5.53 kB {0} [built]
[177] ./~/react/lib/ReactPropTypes.js 500 bytes {0} [built]
[179] ./~/react/lib/ReactPureComponent.js 1.32 kB {0} [built]
[180] ./~/react/lib/ReactVersion.js 350 bytes {0} [built]
+ 170 hidden modules
✨ Done in 1.83s.
2.03 real 2.17 user 0.18 sys
⋊> ~/s/try-fuse-box time node fuse-build.js 13:41:43
└── default (2 files, 1.3 kB)
index.js
components/Hello.js
└── react (26 files) 106.7 kB
└── object-assign (1 files) 2.2 kB
└── fbjs (23 files) 33.6 kB
└── process (1 files) 3 kB
└── object-assign-polyfill (1 files) 1 kB
└── prop-types (4 files) 22 kB
└── react-dom (126 files) 552.1 kB
└── fuse-box (2 files) 2.6 kB
Bundle
Size: 724.6 kB
Time: 949ms
1.27 real 1.29 user 0.13 sys
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

In compliance withes6 proposal-dynamic-importandTypescript 2.4 dynamic importsFuseBox supports import statement.

Antares autotune 5. On of the standard functionality, FuseBox offers much more.Quantum supports all the features listed below.

Loading JSON

JSON files can be loaded asynchronously

Loading support

API TypeTargetSupport
FuseBox Originaluniversal (always on)yes
Quantumbrowseryes
Quantumuniversalyes
Quantumserveryes

Working example

Clone the repository

Run with Original API

Try with Quantum

Fuse Box Github Link

Tests are availablehere

Loading CSS

Vma media player. CSS files can be loaded asynchronously

Loading support

API TypeTargetSupport
FuseBox Originalbrowseryes
FuseBox Originalserveryes (resolves nothing)
Quantumbrowseryes
Quantumuniversalyes
Quantumserveryes (resolves nothing)

Tests are availablehere

Working example

Clone the repository

Run with Original API

Try with Quantum

Loading anything else

Any other files can be loaded asynchronously too

Github

Loading support

API TypeTargetSupport
FuseBox Originalbrowseryes
FuseBox Originalserveryes (with {extendServerImport : true})
Quantumbrowseryes
Quantumuniversalyes
Quantumserveryes (resolves a string with {extendServerImport : true})

Loading remote javascript file (from CDN)

Compare wd and seagate external hard disk. You can load a remote javascript file from CDN (it must support CORS if you wantto load it in the browser), for example

Loading support

API TypeTargetSupport
FuseBox Originalbrowseryes
FuseBox Originalserveryes
Quantumbrowseryes
Quantumuniversalyes
Quantumserveryes (with {extendServerImport : true})

Working example

Clone the repository

Run with Original API

Fuse Box Github Tutorial

Download microsoft windows media player free. Try with Quantum

Tests are availablehere

Fuse Box Github App

Loading split bundle

Split bundles can be retrieved by name or by referencing an actual module

note: Physical code splitting (when the bundles are actually created) works ONLYin Quantum. For development purposes your split bundles will be present in themaster bundle BY DESIGN

Loading support

API TypeTargetSupport
FuseBox Originalbrowseryes (faked - no physical splitting)
FuseBox Originalserveryes (faked - no physical splitting)
Quantumbrowseryes
Quantumuniversalyes
Quantumserveryes

More information on code splitting is availablehere

Working example

Clone the repository

Fuse Box Github Box

Run with Original API

Try with Quantum

Tests are availablehere





broken image