├── .eslintrc.js ├── .gitignore ├── .husky ├── .gitignore ├── commit-msg └── pre-commit ├── .prettierrc.json ├── .travis.yml ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── LICENSE ├── README.md ├── commitlint.config.js ├── jest.config.js ├── package.json ├── rollup.config.js ├── script-build.js ├── script-start.js ├── script-typecheck.js ├── src ├── __tests__ │ ├── adoptedCallback.ts │ ├── attributeChangeCallback.ts │ ├── disconnectedCallback.ts │ ├── elementBehindClass.ts │ ├── elementBehindClassFuntions.ts │ ├── elementBehindClassOfClassFunctions.ts │ ├── elementBehindClassOfClassStatic.ts │ ├── replaceConstructor.ts │ ├── simple.ts │ └── staticVariables.ts ├── package │ ├── index.ts │ ├── polyfill │ │ ├── applyPolyfill.ts │ │ ├── constructInstance.ts │ │ ├── createHookClass.ts │ │ ├── createHookElementChangeListener.ts │ │ ├── hmrCache.ts │ │ ├── onCustomElementChange.ts │ │ ├── overrideCustomElementDefine.ts │ │ ├── patch.ts │ │ └── reflowStrategy.ts │ └── reflow-strategy │ │ └── rerenderInnerHTML.ts └── sample │ ├── app-root.ts │ ├── decorator │ └── defineCustomElement.ts │ ├── elementNo1.ts │ ├── elementNo2.ts │ ├── elementNo3.ts │ ├── hmr-polyfill.ts │ ├── index.ts │ └── superExtendElement.ts ├── tsconfig-build.json ├── tsconfig.eslint.json └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm test -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] }; 2 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/rollup.config.js -------------------------------------------------------------------------------- /script-build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/script-build.js -------------------------------------------------------------------------------- /script-start.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/script-start.js -------------------------------------------------------------------------------- /script-typecheck.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/script-typecheck.js -------------------------------------------------------------------------------- /src/__tests__/adoptedCallback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/adoptedCallback.ts -------------------------------------------------------------------------------- /src/__tests__/attributeChangeCallback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/attributeChangeCallback.ts -------------------------------------------------------------------------------- /src/__tests__/disconnectedCallback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/disconnectedCallback.ts -------------------------------------------------------------------------------- /src/__tests__/elementBehindClass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/elementBehindClass.ts -------------------------------------------------------------------------------- /src/__tests__/elementBehindClassFuntions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/elementBehindClassFuntions.ts -------------------------------------------------------------------------------- /src/__tests__/elementBehindClassOfClassFunctions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/elementBehindClassOfClassFunctions.ts -------------------------------------------------------------------------------- /src/__tests__/elementBehindClassOfClassStatic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/elementBehindClassOfClassStatic.ts -------------------------------------------------------------------------------- /src/__tests__/replaceConstructor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/replaceConstructor.ts -------------------------------------------------------------------------------- /src/__tests__/simple.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/simple.ts -------------------------------------------------------------------------------- /src/__tests__/staticVariables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/__tests__/staticVariables.ts -------------------------------------------------------------------------------- /src/package/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/index.ts -------------------------------------------------------------------------------- /src/package/polyfill/applyPolyfill.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/applyPolyfill.ts -------------------------------------------------------------------------------- /src/package/polyfill/constructInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/constructInstance.ts -------------------------------------------------------------------------------- /src/package/polyfill/createHookClass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/createHookClass.ts -------------------------------------------------------------------------------- /src/package/polyfill/createHookElementChangeListener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/createHookElementChangeListener.ts -------------------------------------------------------------------------------- /src/package/polyfill/hmrCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/hmrCache.ts -------------------------------------------------------------------------------- /src/package/polyfill/onCustomElementChange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/onCustomElementChange.ts -------------------------------------------------------------------------------- /src/package/polyfill/overrideCustomElementDefine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/overrideCustomElementDefine.ts -------------------------------------------------------------------------------- /src/package/polyfill/patch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/patch.ts -------------------------------------------------------------------------------- /src/package/polyfill/reflowStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/polyfill/reflowStrategy.ts -------------------------------------------------------------------------------- /src/package/reflow-strategy/rerenderInnerHTML.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/package/reflow-strategy/rerenderInnerHTML.ts -------------------------------------------------------------------------------- /src/sample/app-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/app-root.ts -------------------------------------------------------------------------------- /src/sample/decorator/defineCustomElement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/decorator/defineCustomElement.ts -------------------------------------------------------------------------------- /src/sample/elementNo1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/elementNo1.ts -------------------------------------------------------------------------------- /src/sample/elementNo2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/elementNo2.ts -------------------------------------------------------------------------------- /src/sample/elementNo3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/elementNo3.ts -------------------------------------------------------------------------------- /src/sample/hmr-polyfill.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/hmr-polyfill.ts -------------------------------------------------------------------------------- /src/sample/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/index.ts -------------------------------------------------------------------------------- /src/sample/superExtendElement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/src/sample/superExtendElement.ts -------------------------------------------------------------------------------- /tsconfig-build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/tsconfig-build.json -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/tsconfig.eslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vegarringdal/custom-elements-hmr-polyfill/HEAD/tsconfig.json --------------------------------------------------------------------------------