Skip to content

Commit

Permalink
chore: import node:process
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan committed Oct 27, 2023
1 parent a3cd130 commit f5fa9fb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/compiler/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { resolve } from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'rollup'
import commonjs from '@rollup/plugin-commonjs'
Expand Down
4 changes: 3 additions & 1 deletion packages/compiler/src/validate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import {
isIdentifier,
isObjectExpression,
Expand Down Expand Up @@ -152,7 +153,8 @@ function validateNoInvalidTypesRootScopeStmt(
return true
}

/** Check vine tagged template string usage,
/**
* Check vine tagged template string usage,
* it can only be called once inside a vine component function,
* and it can't contain any interpolation
*/
Expand Down
1 change: 1 addition & 0 deletions packages/e2e-test/utils/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'node:path'
import process from 'node:process'
import fs from 'node:fs'
import { fileURLToPath } from 'node:url'
import { expect } from 'vitest'
Expand Down
1 change: 1 addition & 0 deletions packages/e2e-test/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import { defineConfig } from 'vitest/config'

const timeout = process.env.CI ? 50000 : 30000
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import type { HmrContext, Plugin, TransformResult } from 'vite'
import { createLogger } from 'vite'
import {
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { resolve } from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'rollup'
import commonjs from '@rollup/plugin-commonjs'
Expand Down
2 changes: 2 additions & 0 deletions packages/vscode-ext/scripts/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const process = require('node:process')

require('esbuild').build({
entryPoints: {
client: './src/extension.ts',
Expand Down
1 change: 1 addition & 0 deletions packages/vue-vine/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { join, resolve } from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'rollup'
import copy from 'rollup-plugin-copy'
Expand Down

0 comments on commit f5fa9fb

Please sign in to comment.