New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@alicd/cone-build-scripts

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicd/cone-build-scripts

- ice2 将 webpack 以及相关的依赖封装到了 @builder/pack 里面, 来确保依赖的稳定性 - ice2 底层 hijack 了 require, 来确保 webpack 以及相关的依赖能指向 @builder/pack 里面 - 这样不论在哪里 require webpack/webpack-dev-server, 使用的都是 @builder/pack 的版本 - 所以在调用 start/build/test 之前, 需要确保 hijackWebpack ice2 被调用 -

0.1.2
latest
Version published
Maintainers
11
Created

背景

  • ice2 将 webpack 以及相关的依赖封装到了 @builder/pack 里面, 来确保依赖的稳定性
  • ice2 底层 hijack 了 require, 来确保 webpack 以及相关的依赖能指向 @builder/pack 里面
  • 这样不论在哪里 require webpack/webpack-dev-server, 使用的都是 @builder/pack 的版本
  • 所以在调用 start/build/test 之前, 需要确保 hijackWebpack ice2 被调用
    • require('ice.js/lib/require-hook').hijackWebpack()
  • 不然在不同代码里面引用到的 webpack 不是同一份, 会引起打包问题

FAQs

Package last updated on 28 Dec 2021

Did you know?

Socket

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.

Install

Related posts