├── .babelrc ├── .editorconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __tests__ ├── .gitkeep ├── ReLoadable_test.bs.js ├── ReLoadable_test.re ├── __snapshots__ │ └── ReLoadable_test.bs.js.snap └── cases │ ├── PlainJsExternal │ ├── PlainJsExternalLazy.bs.js │ └── PlainJsExternalLazy.re │ ├── PlainJsInternal │ ├── PlainJsClassInternalLazy.bs.js │ ├── PlainJsClassInternalLazy.re │ ├── PlainJsFnInternalLazy.bs.js │ ├── PlainJsFnInternalLazy.re │ ├── class-component.js │ └── fn-component.js │ └── SimpleReasonReact │ ├── SimpleReasonReact.bs.js │ ├── SimpleReasonReact.re │ ├── SimpleReasonReactLazy.bs.js │ └── SimpleReasonReactLazy.re ├── bsconfig.json ├── examples ├── with-parcel │ ├── .babelrc │ ├── README.md │ ├── bsconfig.json │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── src │ │ ├── App.bs.js │ │ ├── App.re │ │ ├── Faq │ │ ├── Faq.bs.js │ │ ├── Faq.re │ │ ├── LazyFaq.bs.js │ │ ├── LazyFaq.re │ │ └── faq.css │ │ ├── Home │ │ ├── Home.bs.js │ │ └── Home.re │ │ ├── Theme │ │ ├── Layout.bs.js │ │ ├── Layout.re │ │ ├── NotFound.bs.js │ │ └── NotFound.re │ │ ├── Utils.bs.js │ │ ├── Utils.re │ │ ├── index.bs.js │ │ ├── index.css │ │ └── index.re └── with-webpack │ ├── .babelrc │ ├── README.md │ ├── bsconfig.json │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── App.bs.js │ ├── App.re │ ├── Faq │ │ ├── Faq.bs.js │ │ ├── Faq.re │ │ ├── LazyFaq.bs.js │ │ ├── LazyFaq.re │ │ └── faq.css │ ├── Home │ │ ├── Home.bs.js │ │ └── Home.re │ ├── Theme │ │ ├── Layout.bs.js │ │ ├── Layout.re │ │ ├── NotFound.bs.js │ │ └── NotFound.re │ ├── Utils.bs.js │ ├── Utils.re │ ├── index.bs.js │ ├── index.css │ └── index.re │ └── webpack.config.js ├── package.json ├── refmt.sh └── src ├── ReLoadable.bs.js └── ReLoadable.re /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-app"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | examples 2 | __tests__ -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /__tests__/ReLoadable_test.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/ReLoadable_test.bs.js -------------------------------------------------------------------------------- /__tests__/ReLoadable_test.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/ReLoadable_test.re -------------------------------------------------------------------------------- /__tests__/__snapshots__/ReLoadable_test.bs.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/__snapshots__/ReLoadable_test.bs.js.snap -------------------------------------------------------------------------------- /__tests__/cases/PlainJsExternal/PlainJsExternalLazy.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsExternal/PlainJsExternalLazy.bs.js -------------------------------------------------------------------------------- /__tests__/cases/PlainJsExternal/PlainJsExternalLazy.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsExternal/PlainJsExternalLazy.re -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/PlainJsClassInternalLazy.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/PlainJsClassInternalLazy.bs.js -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/PlainJsClassInternalLazy.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/PlainJsClassInternalLazy.re -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/PlainJsFnInternalLazy.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/PlainJsFnInternalLazy.bs.js -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/PlainJsFnInternalLazy.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/PlainJsFnInternalLazy.re -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/class-component.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/class-component.js -------------------------------------------------------------------------------- /__tests__/cases/PlainJsInternal/fn-component.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/PlainJsInternal/fn-component.js -------------------------------------------------------------------------------- /__tests__/cases/SimpleReasonReact/SimpleReasonReact.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/SimpleReasonReact/SimpleReasonReact.bs.js -------------------------------------------------------------------------------- /__tests__/cases/SimpleReasonReact/SimpleReasonReact.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/SimpleReasonReact/SimpleReasonReact.re -------------------------------------------------------------------------------- /__tests__/cases/SimpleReasonReact/SimpleReasonReactLazy.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/SimpleReasonReact/SimpleReasonReactLazy.bs.js -------------------------------------------------------------------------------- /__tests__/cases/SimpleReasonReact/SimpleReasonReactLazy.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/__tests__/cases/SimpleReasonReact/SimpleReasonReactLazy.re -------------------------------------------------------------------------------- /bsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/bsconfig.json -------------------------------------------------------------------------------- /examples/with-parcel/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-app"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-parcel/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/README.md -------------------------------------------------------------------------------- /examples/with-parcel/bsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/bsconfig.json -------------------------------------------------------------------------------- /examples/with-parcel/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/index.html -------------------------------------------------------------------------------- /examples/with-parcel/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/package-lock.json -------------------------------------------------------------------------------- /examples/with-parcel/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/package.json -------------------------------------------------------------------------------- /examples/with-parcel/src/App.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/App.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/App.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/App.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Faq/Faq.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Faq/Faq.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Faq/Faq.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Faq/Faq.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Faq/LazyFaq.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Faq/LazyFaq.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Faq/LazyFaq.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Faq/LazyFaq.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Faq/faq.css: -------------------------------------------------------------------------------- 1 | .faq { 2 | color: red; 3 | } -------------------------------------------------------------------------------- /examples/with-parcel/src/Home/Home.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Home/Home.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Home/Home.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Home/Home.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Theme/Layout.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Theme/Layout.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Theme/Layout.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Theme/Layout.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Theme/NotFound.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Theme/NotFound.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Theme/NotFound.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Theme/NotFound.re -------------------------------------------------------------------------------- /examples/with-parcel/src/Utils.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Utils.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/Utils.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/Utils.re -------------------------------------------------------------------------------- /examples/with-parcel/src/index.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/index.bs.js -------------------------------------------------------------------------------- /examples/with-parcel/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/index.css -------------------------------------------------------------------------------- /examples/with-parcel/src/index.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-parcel/src/index.re -------------------------------------------------------------------------------- /examples/with-webpack/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-app"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-webpack/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/README.md -------------------------------------------------------------------------------- /examples/with-webpack/bsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/bsconfig.json -------------------------------------------------------------------------------- /examples/with-webpack/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/index.html -------------------------------------------------------------------------------- /examples/with-webpack/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/package-lock.json -------------------------------------------------------------------------------- /examples/with-webpack/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/package.json -------------------------------------------------------------------------------- /examples/with-webpack/src/App.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/App.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/App.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/App.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Faq/Faq.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Faq/Faq.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Faq/Faq.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Faq/Faq.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Faq/LazyFaq.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Faq/LazyFaq.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Faq/LazyFaq.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Faq/LazyFaq.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Faq/faq.css: -------------------------------------------------------------------------------- 1 | .faq { 2 | color: red; 3 | } -------------------------------------------------------------------------------- /examples/with-webpack/src/Home/Home.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Home/Home.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Home/Home.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Home/Home.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Theme/Layout.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Theme/Layout.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Theme/Layout.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Theme/Layout.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Theme/NotFound.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Theme/NotFound.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Theme/NotFound.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Theme/NotFound.re -------------------------------------------------------------------------------- /examples/with-webpack/src/Utils.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Utils.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/Utils.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/Utils.re -------------------------------------------------------------------------------- /examples/with-webpack/src/index.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/index.bs.js -------------------------------------------------------------------------------- /examples/with-webpack/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/index.css -------------------------------------------------------------------------------- /examples/with-webpack/src/index.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/src/index.re -------------------------------------------------------------------------------- /examples/with-webpack/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/examples/with-webpack/webpack.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/package.json -------------------------------------------------------------------------------- /refmt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/refmt.sh -------------------------------------------------------------------------------- /src/ReLoadable.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/src/ReLoadable.bs.js -------------------------------------------------------------------------------- /src/ReLoadable.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arialpew/reason-loadable/HEAD/src/ReLoadable.re --------------------------------------------------------------------------------