Skip to content
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

chore: Static POC #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
!/node_modules/karma-webpack
/npm-debug.log

.karma-cache

## testing
/coverage/

Expand Down
3 changes: 3 additions & 0 deletions en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
foo: 'is great',
};
11 changes: 10 additions & 1 deletion foo-one.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
window.customElements.define('foo-one', class extends HTMLElement {});
window.customElements.define('foo-one', class extends HTMLElement {
constructor() {
super();
this.foo = 'one';
}

connectedCallback() {
this.foo = 'one-connected';
}
});
19 changes: 18 additions & 1 deletion foo-two.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
import './foo-one.js';

window.customElements.define('karma-webpack-wc-bug', class extends HTMLElement {});
window.customElements.define('foo-two', class extends HTMLElement {
constructor() {
super();
this.foo = 'two';
}

connectedCallback() {
this.foo = 'two-connected';
}

// eslint-disable-next-line class-methods-use-this
loadTranslations() {
return import('./en.js').then((module) => {
// console.log(module.default);
this.foo = module.default.foo;
});
}
});
26 changes: 26 additions & 0 deletions node_modules/karma-webpack/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 65 additions & 58 deletions node_modules/karma-webpack/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading