├── .codesandbox └── tasks.json ├── .eslintrc.js ├── .github └── workflows │ ├── ci.yml │ └── csb.yml ├── .gitignore ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .proxyrc.json ├── LICENSE ├── README.md ├── _headers ├── jest.config.js ├── package.json ├── server.js ├── src ├── FileSystem │ ├── FSLayer.ts │ ├── index.ts │ └── layers │ │ ├── IFrameFSLayer.ts │ │ ├── MemoryFSLayer.ts │ │ └── NodeModuleFSLayer.ts ├── bundler │ ├── bundler.ts │ ├── module-registry │ │ ├── NodeModule.ts │ │ ├── build-dep.ts │ │ ├── index.ts │ │ └── module-cdn.ts │ ├── module │ │ ├── Evaluation.ts │ │ ├── HMR.ts │ │ ├── Module.ts │ │ ├── eval.ts │ │ └── hot.ts │ ├── presets │ │ ├── Preset.ts │ │ ├── react │ │ │ └── ReactPreset.ts │ │ ├── registry.ts │ │ └── solid │ │ │ └── SolidPreset.ts │ └── transforms │ │ ├── Transformer.ts │ │ ├── babel │ │ ├── babel-plugin-registry.ts │ │ ├── babel-worker.ts │ │ ├── dep-collector.ts │ │ ├── index.ts │ │ └── walker │ │ │ └── traverse-all.ts │ │ ├── css │ │ ├── import-loader │ │ │ ├── README.md │ │ │ ├── index.ts │ │ │ ├── join-layer.ts │ │ │ ├── join-media.ts │ │ │ ├── parse-statements.ts │ │ │ └── process-content.ts │ │ ├── index.ts │ │ └── postcss-loader.ts │ │ ├── react-refresh │ │ └── index.ts │ │ └── style │ │ ├── index.ts │ │ └── insert-css.ts ├── error-listener │ ├── get-lines-around.ts │ ├── get-source-map.ts │ ├── get-stack-frames.ts │ ├── index.ts │ ├── mapper.ts │ ├── parser.ts │ ├── proxy-console.ts │ ├── stack-frame.ts │ ├── stack-trace-limit.ts │ ├── unhandled-error.ts │ ├── unhandled-rejection.ts │ ├── unmapper.ts │ └── warnings.ts ├── errors │ ├── BundlerError.ts │ ├── CompilationError.ts │ ├── FetchError.ts │ ├── IntegrationError.ts │ ├── ModuleNotFound.ts │ ├── SandpackError.ts │ └── util.ts ├── index.html ├── index.ts ├── integrations │ └── console.ts ├── protocol │ ├── iframe.ts │ └── message-types.ts ├── resolver │ ├── .gitignore │ ├── fixture │ │ ├── bar.js │ │ ├── foo.js │ │ ├── nested │ │ │ ├── index.js │ │ │ └── test.js │ │ ├── nested_node_modules │ │ │ └── package.json │ │ ├── node_modules │ │ │ ├── @babel │ │ │ │ └── runtime │ │ │ │ │ └── package.json │ │ │ ├── @scope │ │ │ │ ├── pkg-exports-main │ │ │ │ │ ├── export.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── module.js │ │ │ │ │ └── package.json │ │ │ │ └── pkg │ │ │ │ │ ├── foo │ │ │ │ │ └── bar.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── @zendesk │ │ │ │ └── laika │ │ │ │ │ ├── esm │ │ │ │ │ └── laika.js │ │ │ │ │ └── package.json │ │ │ ├── aliased-file │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── aliased │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── foo │ │ │ │ ├── bar.js │ │ │ │ ├── index.js │ │ │ │ ├── nested │ │ │ │ │ └── baz.js │ │ │ │ └── package.json │ │ │ ├── package-alias-exclude │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-alias-glob │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ └── test.js │ │ │ ├── package-alias │ │ │ │ ├── bar.js │ │ │ │ ├── browser.js │ │ │ │ ├── foo.js │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-browser-alias │ │ │ │ ├── bar.js │ │ │ │ ├── browser.js │ │ │ │ ├── foo.js │ │ │ │ ├── main.js │ │ │ │ ├── nested.js │ │ │ │ ├── package.json │ │ │ │ └── subfolder1 │ │ │ │ │ └── subfolder2 │ │ │ │ │ └── subfile.js │ │ │ ├── package-browser-exclude │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-browser │ │ │ │ ├── browser.js │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-exports │ │ │ │ ├── dist.js │ │ │ │ ├── foo.js │ │ │ │ ├── module.js │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ ├── components │ │ │ │ │ └── a.js │ │ │ │ │ └── utils │ │ │ │ │ ├── path.js │ │ │ │ │ └── test │ │ │ │ │ └── index.js │ │ │ ├── package-fallback │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── package-main-directory │ │ │ │ ├── nested │ │ │ │ │ └── index.js │ │ │ │ └── package.json │ │ │ ├── package-main │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-module-fallback │ │ │ │ ├── main.js │ │ │ │ └── package.json │ │ │ ├── package-module │ │ │ │ ├── main.js │ │ │ │ ├── module.js │ │ │ │ └── package.json │ │ │ ├── readable-stream │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── side-effects-false │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ └── index.js │ │ │ ├── simple │ │ │ │ ├── entrypoint.js │ │ │ │ └── package.json │ │ │ ├── solid-js │ │ │ │ └── package.json │ │ │ ├── styled-components │ │ │ │ ├── macro │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ └── util │ │ │ │ ├── package.json │ │ │ │ └── util.js │ │ ├── package.json │ │ ├── packages │ │ │ ├── source-alias │ │ │ │ ├── dist.js │ │ │ │ ├── other.js │ │ │ │ ├── package.json │ │ │ │ └── source.js │ │ │ └── source │ │ │ │ ├── dist.js │ │ │ │ ├── package.json │ │ │ │ └── source.js │ │ ├── src │ │ │ ├── app │ │ │ │ ├── index.js │ │ │ │ └── something.js │ │ │ ├── app_config │ │ │ │ └── test.js │ │ │ ├── components │ │ │ │ ├── Button │ │ │ │ │ └── index.tsx │ │ │ │ └── Card │ │ │ │ │ └── index.jsx │ │ │ └── not_app │ │ │ │ └── something-else.ts │ │ └── tsconfig.json │ ├── resolver.test.ts │ ├── resolver.ts │ └── utils │ │ ├── __snapshots__ │ │ └── pkg-json.test.ts.snap │ │ ├── alias.ts │ │ ├── constants.ts │ │ ├── exports.ts │ │ ├── fs.test.ts │ │ ├── fs.ts │ │ ├── module-specifier.ts │ │ ├── pkg-json.test.ts │ │ ├── pkg-json.ts │ │ └── tsconfig.ts ├── types.ts ├── types │ └── gensync.d.ts └── utils │ ├── Debouncer.ts │ ├── Disposable.ts │ ├── NamedPromiseQueue.ts │ ├── WorkerMessageBus.ts │ ├── document.ts │ ├── emitter.ts │ ├── fetch.ts │ ├── html.ts │ ├── logger.ts │ ├── nullthrows.ts │ ├── object.ts │ ├── path.ts │ └── sleep.ts ├── tsconfig.json └── yarn.lock /.codesandbox/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.codesandbox/tasks.json -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/csb.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.github/workflows/csb.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .parcel-cache 4 | *.log 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.prettierrc -------------------------------------------------------------------------------- /.proxyrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/.proxyrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/README.md -------------------------------------------------------------------------------- /_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/_headers -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/package.json -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/server.js -------------------------------------------------------------------------------- /src/FileSystem/FSLayer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/FileSystem/FSLayer.ts -------------------------------------------------------------------------------- /src/FileSystem/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/FileSystem/index.ts -------------------------------------------------------------------------------- /src/FileSystem/layers/IFrameFSLayer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/FileSystem/layers/IFrameFSLayer.ts -------------------------------------------------------------------------------- /src/FileSystem/layers/MemoryFSLayer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/FileSystem/layers/MemoryFSLayer.ts -------------------------------------------------------------------------------- /src/FileSystem/layers/NodeModuleFSLayer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/FileSystem/layers/NodeModuleFSLayer.ts -------------------------------------------------------------------------------- /src/bundler/bundler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/bundler.ts -------------------------------------------------------------------------------- /src/bundler/module-registry/NodeModule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module-registry/NodeModule.ts -------------------------------------------------------------------------------- /src/bundler/module-registry/build-dep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module-registry/build-dep.ts -------------------------------------------------------------------------------- /src/bundler/module-registry/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module-registry/index.ts -------------------------------------------------------------------------------- /src/bundler/module-registry/module-cdn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module-registry/module-cdn.ts -------------------------------------------------------------------------------- /src/bundler/module/Evaluation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module/Evaluation.ts -------------------------------------------------------------------------------- /src/bundler/module/HMR.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module/HMR.ts -------------------------------------------------------------------------------- /src/bundler/module/Module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module/Module.ts -------------------------------------------------------------------------------- /src/bundler/module/eval.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module/eval.ts -------------------------------------------------------------------------------- /src/bundler/module/hot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/module/hot.ts -------------------------------------------------------------------------------- /src/bundler/presets/Preset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/presets/Preset.ts -------------------------------------------------------------------------------- /src/bundler/presets/react/ReactPreset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/presets/react/ReactPreset.ts -------------------------------------------------------------------------------- /src/bundler/presets/registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/presets/registry.ts -------------------------------------------------------------------------------- /src/bundler/presets/solid/SolidPreset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/presets/solid/SolidPreset.ts -------------------------------------------------------------------------------- /src/bundler/transforms/Transformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/Transformer.ts -------------------------------------------------------------------------------- /src/bundler/transforms/babel/babel-plugin-registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/babel/babel-plugin-registry.ts -------------------------------------------------------------------------------- /src/bundler/transforms/babel/babel-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/babel/babel-worker.ts -------------------------------------------------------------------------------- /src/bundler/transforms/babel/dep-collector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/babel/dep-collector.ts -------------------------------------------------------------------------------- /src/bundler/transforms/babel/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/babel/index.ts -------------------------------------------------------------------------------- /src/bundler/transforms/babel/walker/traverse-all.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/babel/walker/traverse-all.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/README.md -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/index.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/join-layer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/join-layer.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/join-media.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/join-media.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/parse-statements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/parse-statements.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/import-loader/process-content.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/import-loader/process-content.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/index.ts -------------------------------------------------------------------------------- /src/bundler/transforms/css/postcss-loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/css/postcss-loader.ts -------------------------------------------------------------------------------- /src/bundler/transforms/react-refresh/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/react-refresh/index.ts -------------------------------------------------------------------------------- /src/bundler/transforms/style/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/style/index.ts -------------------------------------------------------------------------------- /src/bundler/transforms/style/insert-css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/bundler/transforms/style/insert-css.ts -------------------------------------------------------------------------------- /src/error-listener/get-lines-around.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/get-lines-around.ts -------------------------------------------------------------------------------- /src/error-listener/get-source-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/get-source-map.ts -------------------------------------------------------------------------------- /src/error-listener/get-stack-frames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/get-stack-frames.ts -------------------------------------------------------------------------------- /src/error-listener/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/index.ts -------------------------------------------------------------------------------- /src/error-listener/mapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/mapper.ts -------------------------------------------------------------------------------- /src/error-listener/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/parser.ts -------------------------------------------------------------------------------- /src/error-listener/proxy-console.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/proxy-console.ts -------------------------------------------------------------------------------- /src/error-listener/stack-frame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/stack-frame.ts -------------------------------------------------------------------------------- /src/error-listener/stack-trace-limit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/stack-trace-limit.ts -------------------------------------------------------------------------------- /src/error-listener/unhandled-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/unhandled-error.ts -------------------------------------------------------------------------------- /src/error-listener/unhandled-rejection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/unhandled-rejection.ts -------------------------------------------------------------------------------- /src/error-listener/unmapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/unmapper.ts -------------------------------------------------------------------------------- /src/error-listener/warnings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/error-listener/warnings.ts -------------------------------------------------------------------------------- /src/errors/BundlerError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/BundlerError.ts -------------------------------------------------------------------------------- /src/errors/CompilationError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/CompilationError.ts -------------------------------------------------------------------------------- /src/errors/FetchError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/FetchError.ts -------------------------------------------------------------------------------- /src/errors/IntegrationError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/IntegrationError.ts -------------------------------------------------------------------------------- /src/errors/ModuleNotFound.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/ModuleNotFound.ts -------------------------------------------------------------------------------- /src/errors/SandpackError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/SandpackError.ts -------------------------------------------------------------------------------- /src/errors/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/errors/util.ts -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/integrations/console.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/integrations/console.ts -------------------------------------------------------------------------------- /src/protocol/iframe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/protocol/iframe.ts -------------------------------------------------------------------------------- /src/protocol/message-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/protocol/message-types.ts -------------------------------------------------------------------------------- /src/resolver/.gitignore: -------------------------------------------------------------------------------- 1 | !fixture/node_modules -------------------------------------------------------------------------------- /src/resolver/fixture/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/nested/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/nested/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/nested_node_modules/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@babel/runtime/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/@babel/runtime/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg-exports-main/export.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg-exports-main/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg-exports-main/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg-exports-main/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/@scope/pkg-exports-main/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg/foo/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@scope/pkg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "scope-pkg" 3 | } 4 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@zendesk/laika/esm/laika.js: -------------------------------------------------------------------------------- 1 | export const LAIKA = 'laika'; 2 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/@zendesk/laika/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/@zendesk/laika/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/aliased-file/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/aliased-file/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aliased" 3 | } 4 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/aliased/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/aliased/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aliased" 3 | } 4 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/foo/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/foo/nested/baz.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo" 3 | } 4 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias-exclude/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias-exclude/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-alias-exclude/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias-glob/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-alias-glob/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias-glob/src/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias/browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-alias/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-alias/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/nested.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-browser-alias/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-alias/subfolder1/subfolder2/subfile.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-exclude/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser-exclude/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-browser-exclude/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser/browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-browser/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-browser/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/dist.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-exports/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/src/components/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/src/utils/path.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-exports/src/utils/test/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-fallback/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-fallback/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-fallback/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-main-directory/nested/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-main-directory/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-main-directory/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-main/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-main/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-main/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-module-fallback/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-module-fallback/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-module-fallback/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-module/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-module/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/package-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/package-module/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/readable-stream/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/readable-stream/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/readable-stream/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/side-effects-false/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/side-effects-false/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/side-effects-false/src/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/simple/entrypoint.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/simple/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/simple/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/solid-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/solid-js/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/styled-components/macro/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "../dist/macro.js" 3 | } 4 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/styled-components/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/util/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/node_modules/util/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/node_modules/util/util.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source-alias/dist.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source-alias/other.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source-alias/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/packages/source-alias/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source-alias/source.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source/dist.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/packages/source/package.json -------------------------------------------------------------------------------- /src/resolver/fixture/packages/source/source.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/app/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/app/something.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/app_config/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/components/Button/index.tsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/components/Card/index.jsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/src/not_app/something-else.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/resolver/fixture/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/fixture/tsconfig.json -------------------------------------------------------------------------------- /src/resolver/resolver.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/resolver.test.ts -------------------------------------------------------------------------------- /src/resolver/resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/resolver.ts -------------------------------------------------------------------------------- /src/resolver/utils/__snapshots__/pkg-json.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/__snapshots__/pkg-json.test.ts.snap -------------------------------------------------------------------------------- /src/resolver/utils/alias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/alias.ts -------------------------------------------------------------------------------- /src/resolver/utils/constants.ts: -------------------------------------------------------------------------------- 1 | export const EMPTY_SHIM = '//empty.js'; 2 | -------------------------------------------------------------------------------- /src/resolver/utils/exports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/exports.ts -------------------------------------------------------------------------------- /src/resolver/utils/fs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/fs.test.ts -------------------------------------------------------------------------------- /src/resolver/utils/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/fs.ts -------------------------------------------------------------------------------- /src/resolver/utils/module-specifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/module-specifier.ts -------------------------------------------------------------------------------- /src/resolver/utils/pkg-json.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/pkg-json.test.ts -------------------------------------------------------------------------------- /src/resolver/utils/pkg-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/pkg-json.ts -------------------------------------------------------------------------------- /src/resolver/utils/tsconfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/resolver/utils/tsconfig.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/types/gensync.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/types/gensync.d.ts -------------------------------------------------------------------------------- /src/utils/Debouncer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/Debouncer.ts -------------------------------------------------------------------------------- /src/utils/Disposable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/Disposable.ts -------------------------------------------------------------------------------- /src/utils/NamedPromiseQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/NamedPromiseQueue.ts -------------------------------------------------------------------------------- /src/utils/WorkerMessageBus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/WorkerMessageBus.ts -------------------------------------------------------------------------------- /src/utils/document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/document.ts -------------------------------------------------------------------------------- /src/utils/emitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/emitter.ts -------------------------------------------------------------------------------- /src/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/fetch.ts -------------------------------------------------------------------------------- /src/utils/html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/html.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/nullthrows.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/nullthrows.ts -------------------------------------------------------------------------------- /src/utils/object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/object.ts -------------------------------------------------------------------------------- /src/utils/path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/path.ts -------------------------------------------------------------------------------- /src/utils/sleep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/src/utils/sleep.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesandbox/sandpack-bundler/HEAD/yarn.lock --------------------------------------------------------------------------------