Skip to content

Commit

Permalink
chore: remove sourcemap options from rollup config, suppress 'eval' w…
Browse files Browse the repository at this point in the history
…arnings from lottie
  • Loading branch information
isaac-mason committed Oct 15, 2024
1 parent 3b1fe1b commit b7e524a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 26 deletions.
8 changes: 3 additions & 5 deletions packages/recast-navigation-core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,20 @@ const babelOptions = {

export default [
{
input: `./src/index.ts`,
input: './src/index.ts',
external: ['@recast-navigation/wasm'],
output: [
{
file: `dist/index.mjs`,
file: 'dist/index.mjs',
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
terser(),
resolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
emitDeclarationOnly: true,
}),
babel(babelOptions),
Expand Down
1 change: 0 additions & 1 deletion packages/recast-navigation-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2022", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
8 changes: 3 additions & 5 deletions packages/recast-navigation-generators/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,20 @@ const babelOptions = {

export default [
{
input: `./src/index.ts`,
input: './src/index.ts',
external: ['@recast-navigation/core'],
output: [
{
file: `dist/index.mjs`,
file: 'dist/index.mjs',
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
terser(),
resolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
emitDeclarationOnly: true,
}),
babel(babelOptions),
Expand Down
1 change: 0 additions & 1 deletion packages/recast-navigation-generators/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2022", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
8 changes: 3 additions & 5 deletions packages/recast-navigation-playcanvas/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,24 @@ const babelOptions = {

export default [
{
input: `./src/index.ts`,
input: './src/index.ts',
external: [
'@recast-navigation/core',
'@recast-navigation/generators',
'playcanvas',
],
output: [
{
file: `dist/index.mjs`,
file: 'dist/index.mjs',
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
terser(),
resolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
emitDeclarationOnly: true,
}),
babel(babelOptions),
Expand Down
1 change: 0 additions & 1 deletion packages/recast-navigation-playcanvas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2022", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
11 changes: 7 additions & 4 deletions packages/recast-navigation-three/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,25 @@ export default [
],
output: [
{
file: `dist/index.mjs`,
file: 'dist/index.mjs',
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
terser(),
resolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
emitDeclarationOnly: true,
}),
babel(babelOptions),
filesize(),
],
onwarn(warning, warn) {
// suppress eval warnings
if (warning.code === 'EVAL') return;
warn(warning);
},
},
];
1 change: 0 additions & 1 deletion packages/recast-navigation-three/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2022", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
2 changes: 0 additions & 2 deletions packages/recast-navigation/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ const entrypoint = ({ name, external }) => ({
{
file: `./${name}.mjs`,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins,
Expand Down
1 change: 0 additions & 1 deletion packages/recast-navigation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2022", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down

0 comments on commit b7e524a

Please sign in to comment.