Skip to content

Commit

Permalink
Revert "fix: Update legacy-ecs package (#886)" (#910)
Browse files Browse the repository at this point in the history
This reverts commit f770b3e.
  • Loading branch information
gonpombo8 authored Mar 4, 2024
1 parent f770b3e commit 912633b
Show file tree
Hide file tree
Showing 22 changed files with 1,216 additions and 2,799 deletions.
28 changes: 24 additions & 4 deletions packages/@dcl/dcl-rollup/ecs.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import resolve from '@rollup/plugin-node-resolve'
import { RollupOptions } from 'rollup'
import typescript from '@rollup/plugin-typescript'
import { terser } from 'rollup-plugin-terser'
import typescript from 'rollup-plugin-typescript2'
import commonjs from '@rollup/plugin-commonjs'
import terser from '@rollup/plugin-terser'
import { sys } from 'typescript'
import { apiExtractor } from './api-extractor'

Expand All @@ -17,7 +17,27 @@ console.assert(packageJson.main, 'package.json .main must be present')
console.assert(packageJson.typings, 'package.json .typings must be present')

const plugins = [
typescript(),
typescript({
verbosity: 2,
clean: true,
tsconfigDefaults: {
include: ['src'],
compilerOptions: {
module: 'ESNext',
sourceMap: true,
declaration: true
}
},
tsconfig: 'tsconfig.json',
tsconfigOverride: {
declaration: true,
declarationMap: true,
sourceMap: false,
inlineSourceMap: true,
inlineSources: true
},
typescript: require('typescript')
}),
resolve({
browser: true,
preferBuiltins: false
Expand All @@ -39,7 +59,7 @@ const config: RollupOptions = {
output: [
{
file: packageJson.main,
format: 'es',
format: 'iife',
name: 'self',
extend: true,
sourcemap: 'inline'
Expand Down
2 changes: 1 addition & 1 deletion packages/@dcl/dcl-rollup/libs.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import terser from '@rollup/plugin-terser'
import { terser } from 'rollup-plugin-terser'
import typescript from 'rollup-plugin-typescript2'
import { sys } from 'typescript'
import { apiExtractor } from './api-extractor'
Expand Down
Loading

0 comments on commit 912633b

Please sign in to comment.