@types/open-wc__webpack-import-meta-loader
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/open-wc__webpack-import-meta-loader

Weekly Downloads

188

Version

0.4.4

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • types