MCPcopy Create free account
hub / github.com/Faleij/json-stream-stringify / createExportConfig

Function createExportConfig

rollup.config.js:35–87  ·  view source on GitHub ↗
(
  output = {
    name: 'jsonStreamStringify',
    sourcemap: true,
    globals: {
      stream: 'stream',
    },
  },
  plugins = [
    typescript({
      useTsconfigDeclarationDir: true,
      check: false,
      tsconfigOverride,
    }),
    nodeResolve({
      jsnext: true,
      extensions,
    }),
    babel({
      babelrc: false,
      extensions,
      presets: [
        '@babel/preset-typescript',
        ...presets,
      ],
      exclude: 'node_modules/**',
      babelHelpers: 'runtime',
      plugins: [
        '@babel/plugin-transform-runtime',
      ],
    }),
  ],
)

Source from the content-addressed store, hash-verified

33];
34
35function createExportConfig(
36 output = {
37 name: 'jsonStreamStringify',
38 sourcemap: true,
39 globals: {
40 stream: 'stream',
41 },
42 },
43 plugins = [
44 typescript({
45 useTsconfigDeclarationDir: true,
46 check: false,
47 tsconfigOverride,
48 }),
49 nodeResolve({
50 jsnext: true,
51 extensions,
52 }),
53 babel({
54 babelrc: false,
55 extensions,
56 presets: [
57 '@babel/preset-typescript',
58 ...presets,
59 ],
60 exclude: 'node_modules/**',
61 babelHelpers: 'runtime',
62 plugins: [
63 '@babel/plugin-transform-runtime',
64 ],
65 }),
66 ],
67) {
68 return {
69 input,
70 output: {
71 name: 'jsonStreamStringify',
72 sourcemap: true,
73 globals: {
74 stream: 'stream',
75 },
76 ...output,
77 },
78 plugins,
79 external(v) {
80 return [
81 'stream',
82 'core-js/',
83 '@babel/runtime',
84 ].some((el) => v === el || v.startsWith(el));
85 },
86 };
87}
88
89const pluginsNoPolly = [
90 typescript({ check: false, tsconfigOverride }),

Callers 1

rollup.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…