path-serializer 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,420 +0,0 @@
1
- export default {
2
- target: [
3
- 'es2022',
4
- 'node'
5
- ],
6
- name: 'cjs',
7
- devtool: false,
8
- context: '/Users/bytedance/Documents/codes/path-serializer',
9
- mode: 'production',
10
- infrastructureLogging: {
11
- level: 'error'
12
- },
13
- experiments: {
14
- asyncWebAssembly: true,
15
- rspackFuture: {
16
- bundlerInfo: {
17
- force: false,
18
- version: '1.0.0-beta.2',
19
- bundler: 'rspack'
20
- }
21
- }
22
- },
23
- externals: [
24
- 'assert',
25
- 'assert/strict',
26
- 'async_hooks',
27
- 'buffer',
28
- 'child_process',
29
- 'cluster',
30
- 'console',
31
- 'constants',
32
- 'crypto',
33
- 'dgram',
34
- 'diagnostics_channel',
35
- 'dns',
36
- 'dns/promises',
37
- 'domain',
38
- 'events',
39
- 'fs',
40
- 'fs/promises',
41
- 'http',
42
- 'http2',
43
- 'https',
44
- 'inspector',
45
- 'inspector/promises',
46
- 'module',
47
- 'net',
48
- 'os',
49
- 'path',
50
- 'path/posix',
51
- 'path/win32',
52
- 'perf_hooks',
53
- 'process',
54
- 'punycode',
55
- 'querystring',
56
- 'readline',
57
- 'readline/promises',
58
- 'repl',
59
- 'stream',
60
- 'stream/consumers',
61
- 'stream/promises',
62
- 'stream/web',
63
- 'string_decoder',
64
- 'sys',
65
- 'timers',
66
- 'timers/promises',
67
- 'tls',
68
- 'trace_events',
69
- 'tty',
70
- 'url',
71
- 'util',
72
- 'util/types',
73
- 'v8',
74
- 'vm',
75
- 'wasi',
76
- 'worker_threads',
77
- 'zlib',
78
- /^node:/,
79
- 'pnpapi'
80
- ],
81
- output: {
82
- path: '/Users/bytedance/Documents/codes/path-serializer/dist/cjs',
83
- filename: '[name].cjs',
84
- chunkFilename: '[name].cjs',
85
- publicPath: '/',
86
- pathinfo: false,
87
- hashFunction: 'xxhash64',
88
- library: {
89
- type: 'commonjs'
90
- },
91
- webassemblyModuleFilename: 'static/wasm/[hash].module.wasm',
92
- iife: false,
93
- chunkFormat: 'commonjs'
94
- },
95
- resolve: {
96
- alias: {
97
- '@swc/helpers': '/Users/bytedance/Documents/codes/path-serializer/node_modules/.pnpm/@swc+helpers@0.5.11/node_modules/@swc/helpers'
98
- },
99
- extensions: [
100
- '.ts',
101
- '.tsx',
102
- '.js',
103
- '.jsx',
104
- '.mjs',
105
- '.json'
106
- ],
107
- tsConfig: {
108
- configFile: '/Users/bytedance/Documents/codes/path-serializer/tsconfig.json'
109
- }
110
- },
111
- module: {
112
- parser: {
113
- javascript: {
114
- exportsPresence: 'error'
115
- }
116
- },
117
- rules: [
118
- /* config.module.rule('mjs') */
119
- {
120
- test: /\.m?js/,
121
- resolve: {
122
- fullySpecified: false
123
- }
124
- },
125
- /* config.module.rule('css') */
126
- {
127
- test: /\.css$/,
128
- type: 'javascript/auto',
129
- sideEffects: true,
130
- use: [
131
- /* config.module.rule('css').use('ignore-css') */
132
- {
133
- loader: '/Users/bytedance/Documents/codes/path-serializer/node_modules/.pnpm/@rsbuild+core@1.0.1-beta.10/node_modules/@rsbuild/core/dist/ignoreCssLoader.cjs'
134
- },
135
- /* config.module.rule('css').use('css') */
136
- {
137
- loader: '/Users/bytedance/Documents/codes/path-serializer/node_modules/.pnpm/@rsbuild+core@1.0.1-beta.10/node_modules/@rsbuild/core/compiled/css-loader',
138
- options: {
139
- importLoaders: 0,
140
- modules: {
141
- auto: true,
142
- namedExport: false,
143
- exportGlobals: false,
144
- exportLocalsConvention: 'camelCase',
145
- localIdentName: '[local]-[hash:base64:6]',
146
- exportOnlyLocals: true
147
- },
148
- sourceMap: false
149
- }
150
- }
151
- ],
152
- resolve: {
153
- preferRelative: true
154
- }
155
- },
156
- /* config.module.rule('js') */
157
- {
158
- test: /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/,
159
- type: 'javascript/auto',
160
- include: [
161
- {
162
- and: [
163
- '/Users/bytedance/Documents/codes/path-serializer',
164
- {
165
- not: /[\\/]node_modules[\\/]/
166
- }
167
- ]
168
- },
169
- /\.(?:ts|tsx|jsx|mts|cts)$/
170
- ],
171
- use: [
172
- /* config.module.rule('js').use('swc') */
173
- {
174
- loader: 'builtin:swc-loader',
175
- options: {
176
- jsc: {
177
- externalHelpers: true,
178
- parser: {
179
- tsx: false,
180
- syntax: 'typescript',
181
- decorators: true
182
- },
183
- preserveAllComments: true,
184
- experimental: {
185
- cacheRoot: '/Users/bytedance/Documents/codes/path-serializer/node_modules/.cache/.swc'
186
- },
187
- transform: {
188
- legacyDecorator: false,
189
- decoratorVersion: '2022-03'
190
- }
191
- },
192
- isModule: 'unknown',
193
- env: {
194
- targets: [
195
- 'last 1 node versions'
196
- ]
197
- }
198
- }
199
- }
200
- ]
201
- },
202
- /* config.module.rule('js-data-uri') */
203
- {
204
- mimetype: {
205
- or: [
206
- 'text/javascript',
207
- 'application/javascript'
208
- ]
209
- },
210
- use: [
211
- /* config.module.rule('js-data-uri').use('swc') */
212
- {
213
- loader: 'builtin:swc-loader',
214
- options: {
215
- jsc: {
216
- externalHelpers: true,
217
- parser: {
218
- tsx: false,
219
- syntax: 'typescript',
220
- decorators: true
221
- },
222
- preserveAllComments: true,
223
- experimental: {
224
- cacheRoot: '/Users/bytedance/Documents/codes/path-serializer/node_modules/.cache/.swc'
225
- },
226
- transform: {
227
- legacyDecorator: false,
228
- decoratorVersion: '2022-03'
229
- }
230
- },
231
- isModule: 'unknown',
232
- env: {
233
- targets: [
234
- 'last 1 node versions'
235
- ]
236
- }
237
- }
238
- }
239
- ],
240
- resolve: {
241
- fullySpecified: false
242
- }
243
- },
244
- /* config.module.rule('image') */
245
- {
246
- test: /\.(?:png|jpg|jpeg|pjpeg|pjp|gif|bmp|webp|ico|apng|avif|tif|tiff|jfif)$/i,
247
- oneOf: [
248
- /* config.module.rule('image').oneOf('image-asset-url') */
249
- {
250
- type: 'asset/resource',
251
- resourceQuery: /(__inline=false|url)/,
252
- generator: {
253
- filename: 'static/image/[name][ext]'
254
- }
255
- },
256
- /* config.module.rule('image').oneOf('image-asset-inline') */
257
- {
258
- type: 'asset/inline',
259
- resourceQuery: /inline/
260
- },
261
- /* config.module.rule('image').oneOf('image-asset') */
262
- {
263
- type: 'asset',
264
- parser: {
265
- dataUrlCondition: {
266
- maxSize: 4096
267
- }
268
- },
269
- generator: {
270
- filename: 'static/image/[name][ext]'
271
- }
272
- }
273
- ]
274
- },
275
- /* config.module.rule('svg') */
276
- {
277
- test: /\.svg$/i,
278
- oneOf: [
279
- /* config.module.rule('svg').oneOf('svg-asset-url') */
280
- {
281
- type: 'asset/resource',
282
- resourceQuery: /(__inline=false|url)/,
283
- generator: {
284
- filename: 'static/svg/[name].svg'
285
- }
286
- },
287
- /* config.module.rule('svg').oneOf('svg-asset-inline') */
288
- {
289
- type: 'asset/inline',
290
- resourceQuery: /inline/
291
- },
292
- /* config.module.rule('svg').oneOf('svg-asset') */
293
- {
294
- type: 'asset',
295
- parser: {
296
- dataUrlCondition: {
297
- maxSize: 4096
298
- }
299
- },
300
- generator: {
301
- filename: 'static/svg/[name].svg'
302
- }
303
- }
304
- ]
305
- },
306
- /* config.module.rule('media') */
307
- {
308
- test: /\.(?:mp4|webm|ogg|mov|mp3|wav|flac|aac|m4a|opus)$/i,
309
- oneOf: [
310
- /* config.module.rule('media').oneOf('media-asset-url') */
311
- {
312
- type: 'asset/resource',
313
- resourceQuery: /(__inline=false|url)/,
314
- generator: {
315
- filename: 'static/media/[name][ext]'
316
- }
317
- },
318
- /* config.module.rule('media').oneOf('media-asset-inline') */
319
- {
320
- type: 'asset/inline',
321
- resourceQuery: /inline/
322
- },
323
- /* config.module.rule('media').oneOf('media-asset') */
324
- {
325
- type: 'asset',
326
- parser: {
327
- dataUrlCondition: {
328
- maxSize: 4096
329
- }
330
- },
331
- generator: {
332
- filename: 'static/media/[name][ext]'
333
- }
334
- }
335
- ]
336
- },
337
- /* config.module.rule('font') */
338
- {
339
- test: /\.(?:woff|woff2|eot|ttf|otf|ttc)$/i,
340
- oneOf: [
341
- /* config.module.rule('font').oneOf('font-asset-url') */
342
- {
343
- type: 'asset/resource',
344
- resourceQuery: /(__inline=false|url)/,
345
- generator: {
346
- filename: 'static/font/[name][ext]'
347
- }
348
- },
349
- /* config.module.rule('font').oneOf('font-asset-inline') */
350
- {
351
- type: 'asset/inline',
352
- resourceQuery: /inline/
353
- },
354
- /* config.module.rule('font').oneOf('font-asset') */
355
- {
356
- type: 'asset',
357
- parser: {
358
- dataUrlCondition: {
359
- maxSize: 4096
360
- }
361
- },
362
- generator: {
363
- filename: 'static/font/[name][ext]'
364
- }
365
- }
366
- ]
367
- },
368
- /* config.module.rule('wasm') */
369
- {
370
- test: /\.wasm$/,
371
- dependency: 'url',
372
- type: 'asset/resource',
373
- generator: {
374
- filename: 'static/wasm/[hash].module.wasm'
375
- }
376
- },
377
- /* config.module.rule('rsbuild-transform-0') */
378
- {
379
- test: /\.node$/,
380
- use: [
381
- /* config.module.rule('rsbuild-transform-0').use('rsbuild-transform-0') */
382
- {
383
- loader: '/Users/bytedance/Documents/codes/path-serializer/node_modules/.pnpm/@rsbuild+core@1.0.1-beta.10/node_modules/@rsbuild/core/dist/transformRawLoader.cjs',
384
- options: {
385
- id: 'rsbuild-transform-0',
386
- getEnvironment: () => environment2
387
- }
388
- }
389
- ]
390
- }
391
- ]
392
- },
393
- optimization: {
394
- minimize: false,
395
- splitChunks: false,
396
- moduleIds: 'named'
397
- },
398
- plugins: [
399
- /* config.plugin('RsbuildCorePlugin') */
400
- new RsbuildCorePlugin(),
401
- /* config.plugin('define') */
402
- new DefinePlugin(
403
- {
404
- 'process.env.NODE_ENV': '"production"',
405
- 'process.env.ASSET_PREFIX': '""'
406
- }
407
- )
408
- ],
409
- performance: {
410
- hints: false,
411
- maxAssetSize: 250000,
412
- maxEntrypointSize: 250000
413
- },
414
- entry: {
415
- main: [
416
- './src/index.ts'
417
- ]
418
- },
419
- externalsType: 'commonjs'
420
- }