Skip to content

Replaces es6 import/export with NodeJS require/module.exports

Notifications You must be signed in to change notification settings

vlad-x/fake-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fake-import

Inspired by https://www.npmjs.com/package/import-export

Replaces es6 import/export with NodeJS require/module.exports

var fakeImports = require('fake-import');

console.log(fakeImport('import React from "React"')); // const React = require("React")

About

Replaces es6 import/export with NodeJS require/module.exports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published