Socket
Socket
Sign inDemoInstall

next-transpile-modules

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-transpile-modules - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

2

package.json
{
"name": "next-transpile-modules",
"version": "7.1.0",
"version": "7.1.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Pierre de la Martinière <pierre.de.la.martiniere@gmail.com>",

@@ -106,2 +106,3 @@ /**

conditionNames: ['require'],
exportsFields: [], // we do that because 'package.json' is usually not present in exports
});

@@ -130,4 +131,12 @@

const deprecatedResolve = enhancedResolve.create.sync({
symlinks: resolveSymlinks,
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.css', '.scss', '.sass'],
mainFields: ['main', 'module', 'source'],
// Is it right? https://github.com/webpack/enhanced-resolve/issues/283#issuecomment-775162497
conditionNames: ['require'],
});
// Get the module path
packageLookupDirectory = resolve(CWD, module);
packageLookupDirectory = deprecatedResolve(CWD, module);

@@ -274,26 +283,2 @@ // Get the location of its package.json

const nextGlobalCssErrorLoader = nextCssLoaders.oneOf.find(
(rule) =>
rule &&
rule.use &&
rule.use.options &&
rule.use.options.reason &&
rule.use.options.reason.startsWith(
'Global CSS \x1B[1mcannot\x1B[22m be imported from within \x1B[1mnode_modules\x1B[22m.'
)
);
const nextGlobalCssAppErrorLoader = nextCssLoaders.oneOf.find(
(rule) =>
rule &&
rule.use &&
rule.use.options &&
rule.use.options.reason &&
rule.use.options.reason.startsWith(
'Global CSS \x1B[1mcannot\x1B[22m be imported from files other than your \x1B[1mCustom <App>\x1B[22m. Please move all global CSS imports to \x1B[36mpages/_app.jsx\x1B[39m. Or convert the import to Component-Level CSS (CSS Modules).'
)
);
const nextGlobalCssLoader = nextCssLoaders.oneOf.find((rule) => regexEqual(rule.test, /(?<!\.module)\.css$/));
if (nextCssLoader) {

@@ -314,20 +299,2 @@ nextCssLoader.issuer.or = nextCssLoader.issuer.and ? nextCssLoader.issuer.and.concat(matcher) : matcher;

}
// Disable "css cannot be imported from node_modules"
// TODO: issuer optimization
if (nextGlobalCssErrorLoader) {
nextGlobalCssErrorLoader.issuer.and = nextGlobalCssErrorLoader.issuer.and.concat(() => false);
}
// Disable "css can only be imported from App"
// TODO: issuer optimization
if (nextGlobalCssAppErrorLoader) {
nextGlobalCssAppErrorLoader.issuer = {};
nextGlobalCssAppErrorLoader.issuer.and = [() => false];
}
// Enable global CSS loader for node_modules
if (nextGlobalCssLoader) {
delete nextGlobalCssLoader.issuer.not;
}
}

@@ -334,0 +301,0 @@

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