File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import terser from '@rollup/plugin-terser'
12
12
import esbuild from 'rollup-plugin-esbuild'
13
13
import alias from '@rollup/plugin-alias'
14
14
import { entries } from './scripts/aliases.js'
15
- import { simplifyEnum } from './scripts/simplify-enum .js'
15
+ import { inlineEnums } from './scripts/inline-enums .js'
16
16
17
17
if ( ! process . env . TARGET ) {
18
18
throw new Error ( 'TARGET package must be specified via --environment flag.' )
@@ -32,7 +32,7 @@ const pkg = require(resolve(`package.json`))
32
32
const packageOptions = pkg . buildOptions || { }
33
33
const name = packageOptions . filename || path . basename ( packageDir )
34
34
35
- const [ enumPlugin , enumDefines ] = simplifyEnum ( )
35
+ const [ enumPlugin , enumDefines ] = inlineEnums ( )
36
36
37
37
const outputConfigs = {
38
38
'esm-bundler' : {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { execa, execaSync } from 'execa'
26
26
import { cpus } from 'node:os'
27
27
import { createRequire } from 'node:module'
28
28
import { targets as allTargets , fuzzyMatchTarget } from './utils.js'
29
- import { scanEnums } from './simplify-enum .js'
29
+ import { scanEnums } from './inline-enums .js'
30
30
import prettyBytes from 'pretty-bytes'
31
31
32
32
const require = createRequire ( import . meta. url )
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ export function scanEnums() {
208
208
/**
209
209
* @returns {[import('rollup').Plugin, Record<string, string>] }
210
210
*/
211
- export function simplifyEnum ( ) {
211
+ export function inlineEnums ( ) {
212
212
if ( ! existsSync ( ENUM_CACHE_PATH ) ) {
213
213
throw new Error ( 'enum cache needs to be initialized before creating plugin' )
214
214
}
@@ -224,7 +224,7 @@ export function simplifyEnum() {
224
224
* @type {import('rollup').Plugin }
225
225
*/
226
226
const plugin = {
227
- name : 'simplify -enum' ,
227
+ name : 'inline -enum' ,
228
228
transform ( code , id ) {
229
229
/**
230
230
* @type {MagicString | undefined }
You can’t perform that action at this time.
0 commit comments