mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
perf: use normal require for postcss
This commit is contained in:
parent
9f8aea5a4c
commit
c979802c4d
@ -84,7 +84,7 @@ export default class PostcssConfig {
|
||||
// Map postcss plugins into instances on object mode once
|
||||
config.plugins = Object.keys(plugins)
|
||||
.map(p => {
|
||||
const plugin = this.nuxt.requireModule(p)
|
||||
const plugin = require(p)
|
||||
const opts = plugins[p]
|
||||
if (opts === false) return // Disabled
|
||||
const instance = plugin(opts)
|
||||
|
Loading…
Reference in New Issue
Block a user