
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@aliyun-sls/babel-plugin-sls-import
Advanced tools
用于SLS App Frame加载公共组件的babel import plugin
先执行yarn dev 再执行yarn test,可以看到test目录下文件的转换
plugins: [
[
plugin,
{
slsLibrary: [
/^@aliyun-sls\S+/,
'someModuleName',
item => {
return item === 'anotherModuleName';
},
],
},
],
]
import { something, something2 } from 'module1';
import defaultThing from 'module2';
import { something as alias } from 'module3';
import { Button } from '@aliyun-sls/fusion';
import Dashboard from '@aliyun-sls/Dashboard';
<Dashboard></Dashboard>;
↓ ↓ ↓ ↓ ↓ ↓
import { something, something2 } from 'module1';
import defaultThing from 'module2';
import { something as alias } from 'module3';
const Button = _sls_import("@aliyun-sls/fusion").Button;
const Dashboard = _sls_import("@aliyun-sls/Dashboard");
/*#__PURE__*/
React.createElement(Dashboard, null);
FAQs
用于SLS App Frame加载公共组件的babel import plugin
We found that @aliyun-sls/babel-plugin-sls-import demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.