NXT 6918#394
Conversation
|
|
||
| if (options.polyfill) { | ||
| const polyfillPath = options.polyfill.replace(/\\/g, '/'); | ||
| lines.push(`__register('@enact/polyfills', function () { return require(${JSON.stringify(polyfillPath)}); });`); |
| } | ||
|
|
||
| for (const {id, request} of modules) { | ||
| lines.push(`__register(${JSON.stringify(id)}, function () { return require(${JSON.stringify(request)}); });`); |
Bun's CSS pipeline does not understand ~package/path imports that css-loader and less-loader handled in webpack. Add shared resolution for @import and @import-json, plus a LESS FileManager for .less imports.
ff773ee to
42c063a
Compare
|
i tried to serve qa-a11y sample in limestone , but , the app does not load in the browser. Please check Uncaught ReferenceError: global is not defined ReferenceError: global is not defined: config/polyfills.js and config/corejs-proxy.js use bare global, which the old webpack config shimmed via NodePolyfillPlugin. That plugin was dropped from package.json and never replaced in the Bun config, so every app bundle throws at startup. |
|
CSS modules are silently broken. createCssLoadResult returns {loader: 'css', exports}, but Bun ignores exports on the css loader. Please check after fixing the error above |
|
--watch doesn't watch. Bun.build has no watch/onRebuild option |
Checklist
Issue Resolved / Feature Added
Resolution
Additional Considerations
Links
Comments