Installation
npm install --save @types/open-wc__webpack-import-meta-loader
Summary
This package contains type definitions for @open-wc/webpack-import-meta-loader (https://github.com/open-wc/open-wc/tree/master/packages/webpack-import-meta-loader).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/open-wc__webpack-import-meta-loader.
index.d.ts
/**
* Webpack loader to rewrite `import.meta` in modules with url data to the source code file location.
*
* @example
* return import.meta;
* // becomes: return ({ url: `${window.location.protocol}//${window.location.host}/relative/path/to/file.js` });
*
* return import.meta.url;
* // becomes: return ({ url: `${window.location.protocol}//${window.location.host}/relative/path/to/file.js` }).url;
*/
declare function importMetaLoader(source: string): string;
export = importMetaLoader;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.