Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ant-design/moment-webpack-plugin

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/moment-webpack-plugin - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

18

index.js

@@ -7,10 +7,16 @@ const generateRegExp = /generate\/dayjs/;

class Plugin {
constructor (options) {
this.options = options || {};
}
apply(compiler) {
const { disableDayjsAlias } = this.options;
const { alias } = compiler.options.resolve;
if (alias) {
alias.dayjs = 'moment';
} else {
compiler.options.resolve.alias = {
dayjs: 'moment',
};
if (!disableDayjsAlias) {
if (alias) {
alias.dayjs = 'moment';
} else {
compiler.options.resolve.alias = {
dayjs: 'moment',
};
}
}

@@ -17,0 +23,0 @@ compiler.hooks.normalModuleFactory.tap(plugin, (factory) => {

{
"name": "@ant-design/moment-webpack-plugin",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc