Skip to content

[scoped-custom-element-registry] Unconditionally install the polyfill #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ packages/webcomponentsjs/src/unresolved.*
packages/webcomponentsjs/custom-elements-es5-adapter.js
packages/webcomponentsjs/webcomponents-bundle.d.ts
packages/webcomponentsjs/webcomponents-bundle.js*

packages/scoped-custom-element-registry/**/.wireit/
packages/scoped-custom-element-registry/**/.tsbuildinfo
packages/scoped-custom-element-registry/**/build/
3 changes: 3 additions & 0 deletions .eslintignore-sync
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[local]
.gitignore

[relative]
packages/*/{.gitignore,.eslintignore}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ packages/webcomponentsjs/webcomponents-bundle.d.ts
packages/webcomponentsjs/webcomponents-bundle.js*

packages/scoped-custom-element-registry/**/.wireit/
packages/scoped-custom-element-registry/**/.tsbuildinfo
packages/scoped-custom-element-registry/**/build/

LICENSE
packages/*/LICENSE.md
Expand Down
2 changes: 2 additions & 0 deletions packages/scoped-custom-element-registry/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.wireit/
.tsbuildinfo
build/
4 changes: 3 additions & 1 deletion packages/scoped-custom-element-registry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

- Unconditionally install the polyfill so that pages doesn't break if native implementations differ.

## [0.0.9] - 2023-03-30

Expand Down
5 changes: 3 additions & 2 deletions packages/scoped-custom-element-registry/closure-flags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
--language_in=STABLE
--language_out=ECMASCRIPT5_STRICT
--dependency_mode=PRUNE
--entry_point=./src/scoped-custom-element-registry.js
--js=./src/scoped-custom-element-registry.js
--entry_point=./build/scoped-custom-element-registry.js
--js=./build/scoped-custom-element-registry.js
--js_output_file=./scoped-custom-element-registry.min.js
--output_wrapper="(function(){
%output%
Expand All @@ -14,4 +14,5 @@
--assume_function_wrapper=true
--rewrite_polyfills=false
--create_source_map=./scoped-custom-element-registry.min.js.map
--source_map_input="./build/scoped-custom-element-registry.js|./build/scoped-custom-element-registry.js.map"
--source_map_include_content
18 changes: 17 additions & 1 deletion packages/scoped-custom-element-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"main": "scoped-custom-element-registry.min.js",
"scripts": {
"build": "wireit",
"build:ts": "wireit",
"test": "wireit"
},
"files": [
Expand Down Expand Up @@ -53,15 +54,30 @@
},
"build:closure": {
"command": "google-closure-compiler --flagfile closure-flags.txt",
"dependencies": [
"build:ts"
],
"files": [
"closure-flags.txt",
"src/**/*.js"
"build/**/*.js"
],
"output": [
"scoped-custom-element-registry.min.js",
"scoped-custom-element-registry.min.js.map"
]
},
"build:ts": {
"command": "tsc",
"files": [
"tsconfig.json",
"src/**/*.ts"
],
"output": [
".tsbuildinfo",
"build"
],
"clean": "if-file-deleted"
},
"test": {
"command": "wtr",
"dependencies": [
Expand Down
Loading