Skip to content

Commit

Permalink
revert: browser es modules thing
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Apr 18, 2021
1 parent fac6ff9 commit a1c131e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"homepage": "https://eta.js.org",
"main": "dist/eta.cjs",
"browser": "dist/browser/eta.min.js",
"module": "dist/browser/eta.es.min.js",
"module": "dist/eta.es.js",
"type": "module",
"exports": {
"import": "./dist/eta.es.js",
Expand Down
13 changes: 1 addition & 12 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ export default [
name: 'Eta',
sourcemap: true,
plugins: [terser()]
},
{
file: 'dist/browser/eta.es.js',
format: 'es',
sourcemap: true
},
{
file: pkg.module,
format: 'es',
sourcemap: true,
plugins: [terser()]
}
],
plugins: [typescript({ useTsconfigDeclarationDir: true }), commonjs(), resolve()],
Expand All @@ -53,7 +42,7 @@ export default [
sourcemap: true
},
{
file: pkg.exports.import,
file: pkg.module,
format: 'es',
sourcemap: true
}
Expand Down

0 comments on commit a1c131e

Please sign in to comment.