-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: unbundled esm #8613
chore: unbundled esm #8613
Changes from 14 commits
ec3ebaa
391795f
c1492dd
bec6ee1
c1b5aca
e1b67bd
474a4b2
c8f98b5
dbf29eb
e1f6676
2c738b0
55bb947
2473946
f35e998
35ea95b
6aa3e46
eaef8f1
4dbee70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,75 +6,67 @@ | |
"module": "index.mjs", | ||
"main": "index", | ||
"files": [ | ||
"src", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should separate the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If copying over the changes, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching that. I updated #8523 to address that |
||
"types", | ||
"compiler.*", | ||
"register.js", | ||
"index.*", | ||
"ssr.*", | ||
"internal", | ||
"store", | ||
"animate", | ||
"transition", | ||
"easing", | ||
"motion", | ||
"action", | ||
"elements", | ||
"index.d.ts", | ||
"internal.d.ts", | ||
"store.d.ts", | ||
"animate.d.ts", | ||
"transition.d.ts", | ||
"easing.d.ts", | ||
"motion.d.ts", | ||
"action.d.ts", | ||
"elements.d.ts", | ||
Comment on lines
+13
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these needed in addition to the exports map because of the moduleResolution thing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct |
||
"README.md" | ||
], | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/runtime/index.d.ts", | ||
"browser": { | ||
"import": "./index.mjs", | ||
"require": "./index.js" | ||
"import": "./src/runtime/index.js" | ||
}, | ||
"import": "./ssr.mjs", | ||
"require": "./ssr.js" | ||
"import": "./src/runtime/ssr.js" | ||
}, | ||
"./compiler": { | ||
"types": "./types/compiler/index.d.ts", | ||
"import": "./compiler.mjs", | ||
"require": "./compiler.js" | ||
"import": "./src/compiler/index.js", | ||
"require": "./compiler.cjs" | ||
}, | ||
"./action": { | ||
"types": "./types/runtime/action/index.d.ts" | ||
}, | ||
"./animate": { | ||
"types": "./types/runtime/animate/index.d.ts", | ||
"import": "./animate/index.mjs", | ||
"require": "./animate/index.js" | ||
"import": "./src/runtime/animate/index.js" | ||
}, | ||
"./easing": { | ||
"types": "./types/runtime/easing/index.d.ts", | ||
"import": "./easing/index.mjs", | ||
"require": "./easing/index.js" | ||
"import": "./src/runtime/easing/index.js" | ||
}, | ||
"./internal": { | ||
"types": "./types/runtime/internal/index.d.ts", | ||
"import": "./internal/index.mjs", | ||
"require": "./internal/index.js" | ||
"import": "./src/runtime/internal/index.js" | ||
}, | ||
"./motion": { | ||
"types": "./types/runtime/motion/index.d.ts", | ||
"import": "./motion/index.mjs", | ||
"require": "./motion/index.js" | ||
"import": "./src/runtime/motion/index.js" | ||
}, | ||
"./register": { | ||
"require": "./register.js" | ||
}, | ||
"./store": { | ||
"types": "./types/runtime/store/index.d.ts", | ||
"import": "./store/index.mjs", | ||
"require": "./store/index.js" | ||
"import": "./src/runtime/store/index.js" | ||
}, | ||
"./transition": { | ||
"types": "./types/runtime/transition/index.d.ts", | ||
"import": "./transition/index.mjs", | ||
"require": "./transition/index.js" | ||
"import": "./src/runtime/transition/index.js" | ||
}, | ||
"./elements": { | ||
"types": "./elements/index.d.ts" | ||
"types": "./elements.d.ts" | ||
} | ||
}, | ||
"engines": { | ||
|
@@ -109,9 +101,21 @@ | |
"url": "https://github.com/sveltejs/svelte/issues" | ||
}, | ||
"homepage": "https://svelte.dev", | ||
"devDependencies": { | ||
"dependencies": { | ||
"@ampproject/remapping": "^2.2.1", | ||
"@jridgewell/sourcemap-codec": "^1.4.15", | ||
"acorn": "^8.8.2", | ||
"aria-query": "^5.1.3", | ||
"axobject-query": "^3.1.1", | ||
"code-red": "^1.0.0", | ||
"css-tree": "^2.3.1", | ||
"estree-walker": "^3.0.3", | ||
"is-reference": "^3.0.1", | ||
"locate-character": "^2.0.5", | ||
"magic-string": "^0.30.0", | ||
"periscopic": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.33.0", | ||
"@rollup/plugin-commonjs": "^24.1.0", | ||
"@rollup/plugin-json": "^6.0.0", | ||
|
@@ -126,26 +130,16 @@ | |
"@types/mocha": "^10.0.1", | ||
"@types/node": "^14.14.31", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"acorn": "^8.8.2", | ||
"agadoo": "^3.0.0", | ||
"aria-query": "^5.1.3", | ||
"axobject-query": "^3.1.1", | ||
"code-red": "^1.0.0", | ||
"css-tree": "^2.3.1", | ||
"esbuild": "^0.17.19", | ||
"eslint": "^8.40.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-svelte": "^2.28.0", | ||
"eslint-plugin-unicorn": "^47.0.0", | ||
"estree-walker": "^3.0.3", | ||
"happy-dom": "^9.18.3", | ||
"is-reference": "^3.0.1", | ||
"jsdom": "^21.1.1", | ||
"kleur": "^4.1.5", | ||
"locate-character": "^2.0.5", | ||
"magic-string": "^0.30.0", | ||
"periscopic": "^3.1.0", | ||
"prettier": "^2.8.8", | ||
"prettier-plugin-svelte": "^2.10.0", | ||
"rollup": "^3.20.2", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a comment explaining why this needs to be ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
!
means it's not ignored, which it was previously 😄There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, duh. the format of this file is rather peculiar where it ignores everything in the root directory by default and then only opts files in. I wonder if we could swap that once the CJS version is removed