Skip to content

Commit 3e176e4

Browse files
Fix up
1 parent 2ac59f1 commit 3e176e4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

packages/firestore/rollup.config.es.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const plugins = [
4040
comments: 'all',
4141
beautify: true
4242
},
43-
mangle: {}
43+
mangle: false
4444
}),
4545
sourcemaps()
4646
];

packages/firestore/rollup.config.es2017.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const browserBuildPlugins = [
9494
target: 'es2017'
9595
}
9696
},
97-
cacheRoot: './.cache/browser/',
97+
clean: true,
9898
transformers: appendPrivatePrefixTransformers
9999
}),
100100
json({ preferConst: true }),
@@ -132,10 +132,12 @@ const browserBuilds = [
132132
const nodeBuildPlugins = [
133133
typescriptPlugin({
134134
typescript,
135-
compilerOptions: {
136-
target: 'es2017'
135+
tsconfigOverride: {
136+
compilerOptions: {
137+
target: 'es2017'
138+
}
137139
},
138-
cacheRoot: `./.cache/node/`
140+
clean: true
139141
}),
140142
json(),
141143
// Needed as we also use the *.proto files
@@ -151,7 +153,7 @@ const nodeBuilds = [
151153
// Persistence build
152154
{
153155
input: 'index.node.ts',
154-
output: [{ file: pkg.mainES2017, format: 'cjs', sourcemap: true }],
156+
output: [{ file: pkg.mainES2017, format: 'es', sourcemap: true }],
155157
plugins: nodeBuildPlugins,
156158
external: resolveNodeExterns
157159
},
@@ -161,7 +163,7 @@ const nodeBuilds = [
161163
output: [
162164
{
163165
file: path.resolve('./memory', memoryPkg.mainES2017),
164-
format: 'cjs',
166+
format: 'es',
165167
sourcemap: true
166168
}
167169
],

0 commit comments

Comments
 (0)