Skip to content

Commit

Permalink
fix(webpack): disable timeFixPlugin
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Jan 19, 2025
1 parent beedbbd commit 2b30cae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/@alterjs/saber/src/vue-renderer/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ const fs = require('node:fs')

exports.prefixSpace = input => (input ? ` ${input}` : '')

/**
*
* @param {fs.PathOrFileDescriptor} file
* @param {fs.readFileSync} readFile
*/
exports.readJSON = (file, readFile = fs.readFileSync) =>
JSON.parse(readFile(file, 'utf8'))
4 changes: 2 additions & 2 deletions packages/@alterjs/saber/src/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Config from 'webpack-chain'
import webpack from 'webpack'
import getFileNames from '../utils/getFileNames'
import type { Saber } from '..'
import timeFixPlugin from './TimeFixPlugin'
// import timeFixPlugin from './TimeFixPlugin'
import PrintStatusPlugin from './PrintStatusPlugin'

export default function webpackConfig(api: Saber, { type }: { type: string }): Config {
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function webpackConfig(api: Saber, { type }: { type: string }): C
target: 'es2015',
})

config.plugin('timefix').use(timeFixPlugin)
// config.plugin('timefix').use(timeFixPlugin)

config.plugin('envs').use(webpack.DefinePlugin, [
{
Expand Down

0 comments on commit 2b30cae

Please sign in to comment.