Skip to content

Commit

Permalink
remove stencil-librarby/loader from gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhangy committed Jul 12, 2024
1 parent 6ea2073 commit 3ce2b1e
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/stencil-library/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
www/
loader/

*~
*.sw[mnpcod]
Expand Down
1 change: 1 addition & 0 deletions packages/stencil-library/loader/cdn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/cjs/loader.cjs.js');
1 change: 1 addition & 0 deletions packages/stencil-library/loader/index.cjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/cjs/loader.cjs.js');
24 changes: 24 additions & 0 deletions packages/stencil-library/loader/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export * from '../dist/types/components';
export interface CustomElementsDefineOptions {
exclude?: string[];
resourcesUrl?: string;
syncQueue?: boolean;
jmp?: (c: Function) => any;
raf?: (c: FrameRequestCallback) => number;
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
}
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
/**
* @deprecated
*/
export declare function applyPolyfills(): Promise<void>;

/**
* Used to specify a nonce value that corresponds with an application's CSP.
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
* Alternatively, the nonce value can be set on a meta tag in the DOM head
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
* will result in the same behavior.
*/
export declare function setNonce(nonce: string): void;
1 change: 1 addition & 0 deletions packages/stencil-library/loader/index.es2017.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../dist/esm/loader.js';
2 changes: 2 additions & 0 deletions packages/stencil-library/loader/index.js

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

11 changes: 11 additions & 0 deletions packages/stencil-library/loader/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "stencil-library-loader",
"private": true,
"typings": "./index.d.ts",
"module": "./index.js",
"main": "./index.cjs.js",
"jsnext:main": "./index.es2017.js",
"es2015": "./index.es2017.js",
"es2017": "./index.es2017.js",
"unpkg": "./cdn.js"
}

0 comments on commit 3ce2b1e

Please sign in to comment.