| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(build)!: Introduce ESM entrypoints (#8091) * feat(build)!: Introduce ESM entrypoints for chunks Introduce an "import" conditional export for each of the chunk entrypoints (blockly/core, blockly/blocks, blockly/javascript etc.), and point these at wrappers created by build_tasks.js that import the corresponding <chunk>_compressed.js file and export its named exports. BREAKING CHANGE: Importing Blockly via import Blockly from 'blockly/core'; (and similarly for the other chunk entrypoints) has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Since core/blockly.ts (the notional entrypoint for blockly/core) does not provide a default export, the wrappers created by this PR do not either. Code of the above form will therefore break, and should be updated to use a wildcard: import * as Blockly from 'blockly/core'; * feat(build)!: Introduce main package ESM entrypoint Introduce an "import" conditional export for the top-level package entrypoint (blockly), and point it at a wrappers created by build_tasks.js that imports the existing index.js file. BREAKING CHANGE: Importing Blockly via import Blockly from 'blockly'; has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Since core/blockly.ts does not provide a default export, the wrapper created by this PR does not either. Code of the above form will therefore break, and should be updated to use a wildcard: import * as Blockly from 'blockly'; * feat(build)!: Introduce ESM entrypoints for langfiles Introduce an "import" conditional export for each of the langfile entrypoints (msg/en, msg/fr, etc.),, and point them at wrappers created by build_tasks.js that import the existing <lang>.js file. BREAKING CHANGE: Importing languages via import en from 'blockly/msg/en'; has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Code of the above form will therefore break, and should be updated to use a wildcard: import * as en from 'blockly/msg/en'; * fix(typings): Remove bogus .d.ts file. For some reason we had a typings/msg/yue.d.ts that did not correxpond to any msg/json/yue.json. Delete it. | 2 年前 | |
Remove @author tags (#5601) Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning. Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly. | 4 年前 | |
chore: update typings docs (#6704) | 3 年前 | |
chore: add api extractor configuration and fix some associated problems (#6388) * chore: add configuration for api extractor * fix: remove extra param names * chore: private to internal * remove unrestricted * chore: remove double backticks * chore: remove fileoverview and export * as * chore: return to returns * chore: fix backslashes and angle brackets in tsdoc * chore: final to sealed * chore: ignore to internal * chore: fix link tags * chore: add api-extractor configuration * chore: add unrecognized tag names * chore: remove tsdoc-metadata * fix: correct index.d.ts * chore: fix connection link | 3 年前 | |
chore: add api extractor configuration and fix some associated problems (#6388) * chore: add configuration for api extractor * fix: remove extra param names * chore: private to internal * remove unrestricted * chore: remove double backticks * chore: remove fileoverview and export * as * chore: return to returns * chore: fix backslashes and angle brackets in tsdoc * chore: final to sealed * chore: ignore to internal * chore: fix link tags * chore: add api-extractor configuration * chore: add unrecognized tag names * chore: remove tsdoc-metadata * fix: correct index.d.ts * chore: fix connection link | 3 年前 | |
fix(generators): Fix generator type declarations (#7750) * test(generators): Add generator TS import/use tests * fix(generators): Fix generator type declarations Add a missing ./ prefix to the imports in the generator wrapper .d.ts files. Fixes: #7741 | 2 年前 | |
chore: add api extractor configuration and fix some associated problems (#6388) * chore: add configuration for api extractor * fix: remove extra param names * chore: private to internal * remove unrestricted * chore: remove double backticks * chore: remove fileoverview and export * as * chore: return to returns * chore: fix backslashes and angle brackets in tsdoc * chore: final to sealed * chore: ignore to internal * chore: fix link tags * chore: add api-extractor configuration * chore: add unrecognized tag names * chore: remove tsdoc-metadata * fix: correct index.d.ts * chore: fix connection link | 3 年前 | |
fix(generators): Fix generator type declarations (#7750) * test(generators): Add generator TS import/use tests * fix(generators): Fix generator type declarations Add a missing ./ prefix to the imports in the generator wrapper .d.ts files. Fixes: #7741 | 2 年前 | |
fix(generators): Fix generator type declarations (#7750) * test(generators): Add generator TS import/use tests * fix(generators): Fix generator type declarations Add a missing ./ prefix to the imports in the generator wrapper .d.ts files. Fixes: #7741 | 2 年前 | |
fix(generators): Fix generator type declarations (#7750) * test(generators): Add generator TS import/use tests * fix(generators): Fix generator type declarations Add a missing ./ prefix to the imports in the generator wrapper .d.ts files. Fixes: #7741 | 2 年前 | |
fix(generators): Fix generator type declarations (#7750) * test(generators): Add generator TS import/use tests * fix(generators): Fix generator type declarations Add a missing ./ prefix to the imports in the generator wrapper .d.ts files. Fixes: #7741 | 2 年前 | |
Cherry pick npm distribution change to develop (#2785) | 6 年前 |
This directory contains hand-crafted typings for places where the Blockly library isn't yet converted to typescript.
These are added to the generated typings as part of the package step. I.e.
npm run package.