Skip to content

Use dynamic import() without webpack finding out.

License

Notifications You must be signed in to change notification settings

fabiospampinato/import-fool-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import Fool Webpack

Use dynamic import() without webpack finding out.

Install

npm install --save import-fool-webpack

Usage

import importFoolWebpack from 'import-fool-webpack';

const os = await importFoolWebpack ( 'node:os' ); // It's just like "import ( 'node:os' )";

console.log ( os.platform () ); // => 'darwin'

License

MIT © Fabio Spampinato