tc39 / proposal-dynamic-import

import() proposal for JavaScript

Home Page:https://tc39.github.io/proposal-dynamic-import/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import a package browser implementation

spiritwindy opened this issue · comments

import lodash from "lodash "

Is there a way or proposal that doesn't need to be packaged, like electron?
It is recommended to use package.json to get the path to the package.
import lodash
=>
import "./node_modules/lodash"
And access from the network to the real file.